diff options
author | worldofpeace <worldofpeace@users.noreply.github.com> | 2019-01-21 05:41:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-21 05:41:46 +0000 |
commit | 0ac651b2fb2c8ab55b9c5251be390792fdbde20c (patch) | |
tree | 5c835aa5b96180b6d4aa29098b5966c9ade4a9c3 /pkgs/development/python-modules | |
parent | f4e02920e2c3967dd7101b6ffe229ef92ade99ac (diff) | |
parent | 441a36f2b33688ffdaf400ce4345e5a0541d2575 (diff) | |
download | nixlib-0ac651b2fb2c8ab55b9c5251be390792fdbde20c.tar nixlib-0ac651b2fb2c8ab55b9c5251be390792fdbde20c.tar.gz nixlib-0ac651b2fb2c8ab55b9c5251be390792fdbde20c.tar.bz2 nixlib-0ac651b2fb2c8ab55b9c5251be390792fdbde20c.tar.lz nixlib-0ac651b2fb2c8ab55b9c5251be390792fdbde20c.tar.xz nixlib-0ac651b2fb2c8ab55b9c5251be390792fdbde20c.tar.zst nixlib-0ac651b2fb2c8ab55b9c5251be390792fdbde20c.zip |
Merge pull request #54399 from MatrixAI/nanotime
pythonPackages.nanotime: init at 0.5.2
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/nanotime/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/nanotime/default.nix b/pkgs/development/python-modules/nanotime/default.nix new file mode 100644 index 000000000000..8dd520a04e9a --- /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 ]; + }; +} |