1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, toml 6, pyyaml 7, packaging 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "dparse"; 13 version = "0.6.3"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-J7uLS8rv7DmXaXuj9uBrJEcgC6JzwLCFw9ASoEVxtSg="; 21 }; 22 23 propagatedBuildInputs = [ 24 toml 25 pyyaml 26 packaging 27 ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ 34 "dparse" 35 ]; 36 37 disabledTests = [ 38 # requires unpackaged dependency pipenv 39 "test_update_pipfile" 40 ]; 41 42 meta = with lib; { 43 description = "A parser for Python dependency files"; 44 homepage = "https://github.com/pyupio/dparse"; 45 changelog = "https://github.com/pyupio/dparse/blob/${version}/HISTORY.rst"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ thomasdesr ]; 48 }; 49}