mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
python312Packages.hcs-utils: refactor (#341815)
This commit is contained in:
commit
35024cd92d
@ -2,38 +2,45 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
six,
|
||||
glibcLocales,
|
||||
pytest,
|
||||
versioneer,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hcs-utils";
|
||||
version = "2.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "hcs_utils";
|
||||
inherit version;
|
||||
sha256 = "04xq69hrys8lf9kp8pva0c4aphjjfw412km7c32ydkwq0i59rhp2";
|
||||
hash = "sha256-4sKcSgSYz+bFYKdOEQh3UsKrCANqX3RnchRpn2EyuBM=";
|
||||
};
|
||||
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
|
||||
checkPhase = ''
|
||||
# root does not has /root as home in sandbox
|
||||
py.test -k 'not test_expand' hcs_utils/test
|
||||
postPatch = ''
|
||||
# Remove vendorized versioneer.py
|
||||
rm versioneer.py
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
six
|
||||
glibcLocales
|
||||
build-system = [
|
||||
setuptools
|
||||
versioneer
|
||||
];
|
||||
nativeCheckInputs = [ pytest ];
|
||||
|
||||
dependencies = [ six ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
disabledTests = [ "test_expand" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library collecting some useful snippets";
|
||||
homepage = "https://pypi.python.org/pypi/hcs_utils/1.3";
|
||||
homepage = "https://gitlab.com/hcs/hcs_utils";
|
||||
license = licenses.isc;
|
||||
maintainers = with maintainers; [ lovek323 ];
|
||||
platforms = platforms.unix;
|
||||
|
Loading…
Reference in New Issue
Block a user