depot/third_party/nixpkgs/pkgs/development/python-modules/nanotime/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

28 lines
684 B
Nix

{ 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 ];
};
}