depot/third_party/nixpkgs/pkgs/development/python-modules/packageurl-python/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

36 lines
833 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "packageurl-python";
version = "0.15.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "packageurl_python";
inherit version;
hash = "sha256-guEVDx/CKOJeezvhxkHvlraggRUmwLTk94gqGB6GJgc=";
};
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 ];
};
}