depot/third_party/nixpkgs/pkgs/development/python-modules/hcs-utils/default.nix

49 lines
873 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
pythonOlder,
setuptools,
six,
versioneer,
}:
buildPythonPackage rec {
pname = "hcs-utils";
version = "2.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
pname = "hcs_utils";
inherit version;
hash = "sha256-4sKcSgSYz+bFYKdOEQh3UsKrCANqX3RnchRpn2EyuBM=";
};
postPatch = ''
# Remove vendorized versioneer.py
rm versioneer.py
'';
build-system = [
setuptools
versioneer
];
dependencies = [ six ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [ "test_expand" ];
meta = with lib; {
description = "Library collecting some useful snippets";
homepage = "https://gitlab.com/hcs/hcs_utils";
license = licenses.isc;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.unix;
};
}