nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.09 32 lines 633 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, dateutil 6, six 7, mock 8, nose 9, pytest 10}: 11 12buildPythonPackage rec { 13 pname = "freezegun"; 14 version = "0.3.15"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "e2062f2c7f95cc276a834c22f1a17179467176b624cc6f936e8bc3be5535ad1b"; 19 }; 20 21 propagatedBuildInputs = [ dateutil six ]; 22 checkInputs = [ mock nose pytest ]; 23 # contains python3 specific code 24 doCheck = !isPy27; 25 26 meta = with stdenv.lib; { 27 description = "FreezeGun: Let your Python tests travel through time"; 28 homepage = "https://github.com/spulec/freezegun"; 29 license = licenses.asl20; 30 }; 31 32}