about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/timecop/default.nix
blob: 272657dfaafdf5f7465bdd343ae184e29b925ec5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib, buildPythonPackage, fetchPypi }:

buildPythonPackage rec {
  pname = "timecop";
  version = "0.5.0dev";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0zbi58sw2yp1qchzfhyi7bsrwxajiypphg65fir98kvj03g011wd";
  };

  # test_epoch fails, see https://github.com/bluekelp/pytimecop/issues/4
  preCheck = ''
    sed -i 's/test_epoch/_test_epoch/' timecop/tests/test_freeze.py
  '';

  meta = with lib; {
    description = "A port of the most excellent TimeCop Ruby Gem for Python";
    homepage = "https://github.com/bluekelp/pytimecop";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ zakame ];
  };
}