python3Packages.packageurl-python: init at 0.9.4

packageurl: add checkInputs as suggested by review

packageurl -> packageurl-python

packageurl-python: add missing dependency
This commit is contained in:
Armijn Hemel 2021-03-14 16:53:29 +01:00
parent ab404ef591
commit ef3912b34c
2 changed files with 24 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -4809,6 +4809,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 { };