mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-17 04:28:31 +00:00
pythonPackages.nanotime: init at 0.5.2
This commit is contained in:
parent
218deb3736
commit
441a36f2b3
27
pkgs/development/python-modules/nanotime/default.nix
Normal file
27
pkgs/development/python-modules/nanotime/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -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 {};
|
||||
|
Loading…
Reference in New Issue
Block a user