1{ lib, buildPythonPackage, fetchPypi }: 2 3buildPythonPackage rec { 4 pname = "timecop"; 5 version = "0.5.0dev"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "0zbi58sw2yp1qchzfhyi7bsrwxajiypphg65fir98kvj03g011wd"; 10 }; 11 12 # test_epoch fails, see https://github.com/bluekelp/pytimecop/issues/4 13 preCheck = '' 14 sed -i 's/test_epoch/_test_epoch/' timecop/tests/test_freeze.py 15 ''; 16 17 meta = with lib; { 18 description = "A port of the most excellent TimeCop Ruby Gem for Python"; 19 homepage = "https://github.com/bluekelp/pytimecop"; 20 license = licenses.gpl3Plus; 21 maintainers = with maintainers; [ zakame ]; 22 }; 23}