Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, click 4, fetchPypi 5, pyyaml 6, rdflib 7, ply 8, xmltodict 9, pytestCheckHook 10, pythonOlder 11, uritools 12}: 13 14buildPythonPackage rec { 15 pname = "spdx-tools"; 16 version = "0.7.1"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-l15tu6iPEFqKyyKr9T/pDw6dVjWiubH+SHeB6WliOxc="; 24 }; 25 26 propagatedBuildInputs = [ 27 click 28 ply 29 pyyaml 30 rdflib 31 uritools 32 xmltodict 33 ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ 40 "spdx" 41 ]; 42 43 meta = with lib; { 44 description = "SPDX parser and tools"; 45 homepage = "https://github.com/spdx/tools-python"; 46 changelog = "https://github.com/spdx/tools-python/blob/v${version}/CHANGELOG.md"; 47 license = licenses.asl20; 48 maintainers = [ ]; 49 }; 50}