2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
six,
|
2024-09-19 14:19:46 +00:00
|
|
|
versioneer,
|
2024-06-05 15:53:02 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-01-13 08:15:51 +00:00
|
|
|
pname = "hcs-utils";
|
2020-04-24 23:36:52 +00:00
|
|
|
version = "2.0";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-01-13 08:15:51 +00:00
|
|
|
pname = "hcs_utils";
|
|
|
|
inherit version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-4sKcSgSYz+bFYKdOEQh3UsKrCANqX3RnchRpn2EyuBM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Remove vendorized versioneer.py
|
|
|
|
rm versioneer.py
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
versioneer
|
2024-06-05 15:53:02 +00:00
|
|
|
];
|
2024-09-19 14:19:46 +00:00
|
|
|
|
|
|
|
dependencies = [ six ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
disabledTests = [ "test_expand" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Library collecting some useful snippets";
|
2024-09-19 14:19:46 +00:00
|
|
|
homepage = "https://gitlab.com/hcs/hcs_utils";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = licenses.isc;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
2024-06-05 15:53:02 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|