diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2024-05-12 17:44:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-12 17:44:16 +0200 |
commit | 8ee54174fb368e449f0e6b581f584c58ee7adf83 (patch) | |
tree | ce07400ad58a1335161eee9d08aa9c438dc2df25 | |
parent | d4aafe0229da0cd621e9bf18c65a9a91365a9a96 (diff) | |
parent | c234e8bbcf7696499a5c46ad2216156ea72a4f21 (diff) |
Merge pull request #311042 from fabaff/nanotime-refactor
python312Packages.nanotime: refactor
-rw-r--r-- | pkgs/development/python-modules/nanotime/default.nix | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/nanotime/default.nix b/pkgs/development/python-modules/nanotime/default.nix index aeabc540eb005..d41126916b0bb 100644 --- a/pkgs/development/python-modules/nanotime/default.nix +++ b/pkgs/development/python-modules/nanotime/default.nix @@ -1,24 +1,31 @@ -{ lib, buildPythonPackage, fetchPypi, nose }: +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pythonOlder, +}: buildPythonPackage rec { pname = "nanotime"; version = "0.5.2"; - format = "setuptools"; + pyproject = true; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "c7cc231fc5f6db401b448d7ab51c96d0a4733f4b69fabe569a576f89ffdf966b"; + hash = "sha256-x8wjH8X220AbRI16tRyW0KRzP0tp+r5Wmldvif/flms="; }; - nativeCheckInputs = [ nose ]; - - checkPhase = '' - nosetests - ''; + build-system = [ setuptools ]; - # tests currently fail + # Tests currently failing + # https://github.com/jbenet/nanotime/issues/2 doCheck = false; + pythonImportsCheck = [ "nanotime" ]; + meta = with lib; { description = "Provides a time object that keeps time as the number of nanoseconds since the UNIX epoch"; homepage = "https://github.com/jbenet/nanotime/tree/master/python"; |