Files
nixpkgs/pkgs/development/python-modules/dparse/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

56 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
hatchling,
packaging,
tomli,
pyyaml,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "dparse";
version = "0.6.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pyupio";
repo = "dparse";
tag = version;
hash = "sha256-LnsmJtWLjV3xoSjacfR9sUwPlOjQTRBWirJVtIJSE8A=";
};
build-system = [ hatchling ];
dependencies = [ packaging ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
optional-dependencies = {
# FIXME pipenv = [ pipenv ];
conda = [ pyyaml ];
};
nativeCheckInputs = [
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "dparse" ];
disabledTests = [
# requires unpackaged dependency pipenv
"test_update_pipfile"
];
meta = {
description = "Parser for Python dependency files";
homepage = "https://github.com/pyupio/dparse";
changelog = "https://github.com/pyupio/dparse/blob/${version}/HISTORY.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ thomasdesr ];
};
}