blob: aeabc540eb005239405585ca807c7eea863124e8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{ lib, buildPythonPackage, fetchPypi, nose }:
buildPythonPackage rec {
pname = "nanotime";
version = "0.5.2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "c7cc231fc5f6db401b448d7ab51c96d0a4733f4b69fabe569a576f89ffdf966b";
};
nativeCheckInputs = [ 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 ];
};
}
|