diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 548840a0add1..a59d4b24995e 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -746,6 +746,12 @@ githubId = 1296771; name = "Anders Riutta"; }; + armijnhemel = { + email = "armijn@tjaldur.nl"; + github = "armijnhemel"; + githubId = 10587952; + name = "Armijn Hemel"; + }; arnarg = { email = "arnarg@fastmail.com"; github = "arnarg"; diff --git a/pkgs/development/python-modules/packageurl-python/default.nix b/pkgs/development/python-modules/packageurl-python/default.nix new file mode 100644 index 000000000000..afca46ec8a80 --- /dev/null +++ b/pkgs/development/python-modules/packageurl-python/default.nix @@ -0,0 +1,22 @@ +{ buildPythonPackage, fetchPypi, lib, pytestCheckHook }: + +buildPythonPackage rec { + pname = "packageurl-python"; + version = "0.9.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "0mpvj8imsaqhrgfq1cxx16flc5201y78kqa7bh2i5zxsc29843mx"; + }; + + checkInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "packageurl" ]; + + meta = with lib; { + description = "Python parser and builder for package URLs"; + homepage = "https://github.com/package-url/packageurl-python"; + license = licenses.mit; + maintainers = with maintainers; [ armijnhemel ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 04a6e7b5eb08..3f3f3278e7a5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4844,6 +4844,8 @@ in { oyaml = callPackage ../development/python-modules/oyaml { }; + packageurl-python = callPackage ../development/python-modules/packageurl-python { }; + packaging = if isPy3k then callPackage ../development/python-modules/packaging { } else callPackage ../development/python-modules/packaging/2.nix { };