mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 17:46:38 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
48 lines
875 B
Nix
48 lines
875 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
lxml,
|
|
fastapi,
|
|
httpx,
|
|
pytestCheckHook,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "inscriptis";
|
|
version = "2.6.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "weblyzard";
|
|
repo = "inscriptis";
|
|
tag = version;
|
|
hash = "sha256-+qLHdQ4i/PYSUCZLYV3BguXjacjs7aB3MP0rJegv+dI=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
lxml
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
fastapi
|
|
httpx
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "inscriptis" ];
|
|
|
|
meta = {
|
|
description = "HTML to text converter";
|
|
mainProgram = "inscript.py";
|
|
homepage = "https://github.com/weblyzard/inscriptis";
|
|
changelog = "https://github.com/weblyzard/inscriptis/releases/tag/${src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|