diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pyrdfa3/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pyrdfa3/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pyrdfa3/default.nix b/nixpkgs/pkgs/development/python-modules/pyrdfa3/default.nix new file mode 100644 index 000000000000..6526824fd9ae --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/pyrdfa3/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, fetchPypi +, html5lib +, pythonOlder +, rdflib +, requests +, setuptools +}: + +buildPythonPackage rec { + pname = "pyrdfa3"; + version = "3.6.2"; + pyproject = true; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit version; + pname = "pyRdfa3"; + hash = "sha256-c2gdq5V/YJAWlnZziLlWpXaccwvEUdpv+y8ONvGDFMI="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + rdflib + html5lib + requests + ]; + + pythonImportsCheck = [ + "pyRdfa" + ]; + + meta = with lib; { + description = "RDFa 1.1 distiller/parser library"; + homepage = "https://github.com/prrvchr/pyrdfa3/"; + changelog = "https://github.com/prrvchr/pyrdfa3/releases/tag/v${version}"; + license = licenses.w3c; + maintainers = with maintainers; [ ambroisie ]; + }; +} |