0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00
nixpkgs/pkgs/development/python-modules/packageurl-python/default.nix

36 lines
833 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "packageurl-python";
version = "0.15.6";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "packageurl_python";
inherit version;
hash = "sha256-y8ia/RXV9NBdtPG2EpfluXpD9h8oeZ9tKCr/Rn7S7pY=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "packageurl" ];
meta = with lib; {
description = "Python parser and builder for package URLs";
homepage = "https://github.com/package-url/packageurl-python";
changelog = "https://github.com/package-url/packageurl-python/blob/v${version}/CHANGELOG.rst";
license = licenses.mit;
maintainers = with maintainers; [ armijnhemel ];
};
}