nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 53 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 hatchling, 7 packaging, 8 tomli, 9 pyyaml, 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "dparse"; 15 version = "0.6.4"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "pyupio"; 20 repo = "dparse"; 21 tag = version; 22 hash = "sha256-LnsmJtWLjV3xoSjacfR9sUwPlOjQTRBWirJVtIJSE8A="; 23 }; 24 25 build-system = [ hatchling ]; 26 27 dependencies = [ packaging ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; 28 29 optional-dependencies = { 30 # FIXME pipenv = [ pipenv ]; 31 conda = [ pyyaml ]; 32 }; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 ] 37 ++ lib.concatAttrValues optional-dependencies; 38 39 pythonImportsCheck = [ "dparse" ]; 40 41 disabledTests = [ 42 # requires unpackaged dependency pipenv 43 "test_update_pipfile" 44 ]; 45 46 meta = { 47 description = "Parser for Python dependency files"; 48 homepage = "https://github.com/pyupio/dparse"; 49 changelog = "https://github.com/pyupio/dparse/blob/${version}/HISTORY.rst"; 50 license = lib.licenses.mit; 51 maintainers = with lib.maintainers; [ thomasdesr ]; 52 }; 53}