nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 39 lines 915 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pydantic, 6 pytestCheckHook, 7 setuptools, 8}: 9 10buildPythonPackage (finalAttrs: { 11 pname = "packageurl-python"; 12 version = "0.17.6"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "package-url"; 17 repo = "packageurl-python"; 18 tag = "v${finalAttrs.version}"; 19 fetchSubmodules = true; 20 hash = "sha256-jH4zJN3XGPFBnto26pcvADXogpooj3dqpqkWnKXgICY="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 nativeCheckInputs = [ 26 pydantic 27 pytestCheckHook 28 ]; 29 30 pythonImportsCheck = [ "packageurl" ]; 31 32 meta = { 33 description = "Python parser and builder for package URLs"; 34 homepage = "https://github.com/package-url/packageurl-python"; 35 changelog = "https://github.com/package-url/packageurl-python/blob/${finalAttrs.src.tag}/CHANGELOG.rst"; 36 license = lib.licenses.mit; 37 maintainers = with lib.maintainers; [ armijnhemel ]; 38 }; 39})