Commit 7bf227bd authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python3Packages.numericalunits: use finalAttrs

parent eb020f6d
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
  pytestCheckHook,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "numericalunits";
  version = "1.26";
  pyproject = true;
@@ -14,7 +14,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "sbyrnes321";
    repo = "numericalunits";
    tag = "numericalunits-${version}";
    tag = "numericalunits-${finalAttrs.version}";
    hash = "sha256-vPB1r+j+p9n+YLnBjHuk2t+QSr+adEOjyC45QSbeb4M=";
  };

@@ -26,6 +26,8 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  pythonImportsCheck = [ "numericalunits" ];

  enabledTestPaths = [
    "tests/tests.py"
  ];
@@ -36,4 +38,4 @@ buildPythonPackage rec {
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ nickcao ];
  };
}
})