Skip to content

Commit

Permalink
python312Packages.hcs-utils: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot-wxt1221 committed Nov 26, 2024
1 parent af51545 commit c5f2f20
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions pkgs/development/python-modules/hcs-utils/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
setuptools,
six,
versioneer,
poetry-core,
fetchFromGitLab,
}:

buildPythonPackage rec {
Expand All @@ -16,33 +18,34 @@ 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
];

dependencies = [ six ];
dependencies = [
six
poetry-core
];

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 ];
platforms = lib.platforms.unix;
};
}

0 comments on commit c5f2f20

Please sign in to comment.