1{ lib, buildPythonPackage, fetchPypi, nose }: 2 3buildPythonPackage rec { 4 pname = "nanotime"; 5 version = "0.5.2"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "c7cc231fc5f6db401b448d7ab51c96d0a4733f4b69fabe569a576f89ffdf966b"; 10 }; 11 12 nativeCheckInputs = [ nose ]; 13 14 checkPhase = '' 15 nosetests 16 ''; 17 18 # tests currently fail 19 doCheck = false; 20 21 meta = with lib; { 22 description = "Provides a time object that keeps time as the number of nanoseconds since the UNIX epoch"; 23 homepage = "https://github.com/jbenet/nanotime/tree/master/python"; 24 license = licenses.mit; 25 maintainers = with maintainers; [ cmcdragonkai ]; 26 }; 27}