1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, toml 6, pyyaml 7, packaging 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "dparse"; 13 version = "0.5.1"; 14 disabled = isPy27; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "a1b5f169102e1c894f9a7d5ccf6f9402a836a5d24be80a986c7ce9eaed78f367"; 19 }; 20 21 propagatedBuildInputs = [ 22 toml 23 pyyaml 24 packaging 25 ]; 26 27 checkInputs = [ 28 pytestCheckHook 29 ]; 30 31 disabledTests = [ 32 # requires unpackaged dependency pipenv 33 "test_update_pipfile" 34 ]; 35 36 meta = with lib; { 37 description = "A parser for Python dependency files"; 38 homepage = "https://github.com/pyupio/dparse"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ thomasdesr ]; 41 }; 42}