Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 36 lines 906 B view raw
1{ lib, buildPythonPackage, fetchPypi 2, setuptools_scm, pytest, pytest-freezegun, freezegun, backports_unittest-mock 3, six, pytz, jaraco_functools, pythonOlder 4, pytest-flake8, pytestcov, pytest-black, pytest-mypy 5}: 6 7buildPythonPackage rec { 8 pname = "tempora"; 9 version = "4.0.0"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "599a3a910b377f2b544c7b221582ecf4cb049b017c994b37f2b1a9ed1099716e"; 14 }; 15 16 disabled = pythonOlder "3.2"; 17 18 nativeBuildInputs = [ setuptools_scm ]; 19 20 propagatedBuildInputs = [ six pytz jaraco_functools ]; 21 22 checkInputs = [ 23 pytest-freezegun pytest freezegun backports_unittest-mock 24 pytest-flake8 pytestcov pytest-black pytest-mypy 25 ]; 26 27 checkPhase = '' 28 pytest 29 ''; 30 31 meta = with lib; { 32 description = "Objects and routines pertaining to date and time"; 33 homepage = "https://github.com/jaraco/tempora"; 34 license = licenses.mit; 35 }; 36}