Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 30 lines 762 B view raw
1{ lib, buildPythonPackage, fetchPypi 2, setuptools_scm, pytest, freezegun, backports_unittest-mock 3, six, pytz, jaraco_functools }: 4 5buildPythonPackage rec { 6 pname = "tempora"; 7 version = "1.14.1"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "cb60b1d2b1664104e307f8e5269d7f4acdb077c82e35cd57246ae14a3427d2d6"; 12 }; 13 14 buildInputs = [ setuptools_scm ]; 15 16 propagatedBuildInputs = [ six pytz jaraco_functools ]; 17 18 checkInputs = [ pytest freezegun backports_unittest-mock ]; 19 20 checkPhase = '' 21 substituteInPlace pytest.ini --replace "--flake8" "" 22 pytest 23 ''; 24 25 meta = with lib; { 26 description = "Objects and routines pertaining to date and time"; 27 homepage = https://github.com/jaraco/tempora; 28 license = licenses.mit; 29 }; 30}