Skip to content

Commit

Permalink
python312Packages.hcs-utils: fix build (#359237)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff authored Dec 20, 2024
2 parents 81eb542 + 186761a commit dbbaf90
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions pkgs/development/python-modules/hcs-utils/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
pythonOlder,
setuptools,
six,
versioneer,
poetry-core,
fetchFromGitLab,
}:

buildPythonPackage rec {
Expand All @@ -16,33 +17,32 @@ buildPythonPackage rec {

disabled = pythonOlder "3.9";

src = fetchPypi {
pname = "hcs_utils";
inherit version;
hash = "sha256-a2xO+hdyJQjgIEcjtmDZLicyz2kzKRjtpEhge5yaa7M=";
src = fetchFromGitLab {
owner = "hcs";
repo = "hcs_utils";
rev = "77668de42895dedb6b4baddf4207f331776de897"; # No tags for 2.1
hash = "sha256-T0a2lYi3umRZQInEsxnLf5p6+IxkUmGJhgW8l2ESDd0=";
};

postPatch = ''
# Remove vendorized versioneer.py
rm versioneer.py
'';

build-system = [
setuptools
versioneer
poetry-core
];

dependencies = [ six ];
dependencies = [
six
];

nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
"test_expand" # It depends on FHS
];

disabledTests = [ "test_expand" ];
nativeCheckInputs = [ pytestCheckHook ];

meta = with lib; {
meta = {
description = "Library collecting some useful snippets";
homepage = "https://gitlab.com/hcs/hcs_utils";
license = licenses.isc;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.unix;
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ lovek323 ];
};
}

0 comments on commit dbbaf90

Please sign in to comment.