mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 00:04:11 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
28 lines
659 B
Nix
28 lines
659 B
Nix
{ lib, buildPythonPackage, fetchPypi, nose }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nanotime";
|
|
version = "0.5.2";
|
|
|
|
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 ];
|
|
};
|
|
}
|