Skip to content

Commit

Permalink
python312Packages.numericalunits: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCao committed Feb 16, 2025
1 parent 79e6c75 commit 1215ea9
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions pkgs/development/python-modules/numericalunits/default.nix
Original file line number Diff line number Diff line change
@@ -1,26 +1,39 @@
{
lib,
buildPythonPackage,
fetchPypi,
isPy3k,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:

buildPythonPackage rec {
version = "1.26";
format = "setuptools";
pname = "numericalunits";
version = "1.26";
pyproject = true;

src = fetchPypi {
inherit pname version;
sha256 = "sha256-igtplF3WXqz27vjIaLzTKY10OfWIL1B7tgYOwgxyPhI=";
src = fetchFromGitHub {
owner = "sbyrnes321";
repo = "numericalunits";
tag = "numericalunits-${version}";
hash = "sha256-vPB1r+j+p9n+YLnBjHuk2t+QSr+adEOjyC45QSbeb4M=";
};

disabled = !isPy3k;
build-system = [
setuptools
];

nativeCheckInputs = [
pytestCheckHook
];

pytestFlagsArray = [
"tests/tests.py"
];

meta = with lib; {
meta = {
homepage = "http://pypi.python.org/pypi/numericalunits";
description = "Package that lets you define quantities with unit";
license = licenses.mit;
maintainers = [ ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nickcao ];
};
}

0 comments on commit 1215ea9

Please sign in to comment.