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.
32 lines
660 B
Nix
32 lines
660 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "timeago";
|
|
version = "1.0.15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hustcc";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "03vm7c02l4g2d1x33w382i1psk8i3an7xchk69yinha33fjj1cag";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [ "test/testcase.py" ];
|
|
|
|
pythonImportsCheck = [ "timeago" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to format past datetime output";
|
|
homepage = "https://github.com/hustcc/timeago";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|