depot/third_party/nixpkgs/pkgs/development/python-modules/hcs-utils/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

48 lines
873 B
Nix

{
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;
};
}