From 441a36f2b33688ffdaf400ce4345e5a0541d2575 Mon Sep 17 00:00:00 2001 From: Roger Qiu Date: Mon, 21 Jan 2019 13:11:44 +1100 Subject: [PATCH] pythonPackages.nanotime: init at 0.5.2 --- .../python-modules/nanotime/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/python-modules/nanotime/default.nix diff --git a/pkgs/development/python-modules/nanotime/default.nix b/pkgs/development/python-modules/nanotime/default.nix new file mode 100644 index 00000000000..8dd520a04e9 --- /dev/null +++ b/pkgs/development/python-modules/nanotime/default.nix @@ -0,0 +1,27 @@ +{ lib, buildPythonPackage, fetchPypi, nose }: + +buildPythonPackage rec { + pname = "nanotime"; + version = "0.5.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "c7cc231fc5f6db401b448d7ab51c96d0a4733f4b69fabe569a576f89ffdf966b"; + }; + + checkInputs = [ nose ]; + + checkPhase = '' + nosetests + ''; + + # tests currently fail + doCheck = false; + + 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; + license = licenses.mit; + maintainers = with maintainers; [ cmcdragonkai ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 657e1cb4330..bf0139b8530 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5181,6 +5181,8 @@ in { nanoleaf = callPackage ../development/python-modules/nanoleaf { }; + nanotime = callPackage ../development/python-modules/nanotime { }; + importlib-metadata = callPackage ../development/python-modules/importlib-metadata {}; importlib-resources = callPackage ../development/python-modules/importlib-resources {};