summary refs log tree commit diff
path: root/pkgs/development/python-modules/mt-940/default.nix
blob: 9b1a2df48bbb98e0778c9330f44adcfeac42f8d9 (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
24
25
26
27
28
29
30
31
32
33
34
35
{ buildPythonPackage, stdenv, pytestrunner, pyyaml, pytest, enum34
, pytestpep8, pytestflakes,fetchFromGitHub, isPy3k, lib, glibcLocales
}:

buildPythonPackage rec {
  version = "4.10.0";
  pname = "mt940";

  src = fetchFromGitHub {
    owner = "WoLpH";
    repo = pname;
    rev = "v${version}";
    sha256 = "1dsf2di8rr0iw2vaz6dppalby3y7i8x2bl0qjqvaiqacjxxvwj65";
  };

  patches = [
    ./no-coverage.patch
  ];

  propagatedBuildInputs = [ pyyaml pytestrunner ]
    ++ lib.optional (!isPy3k) enum34;

  LC_ALL="en_US.UTF-8";

  checkInputs = [ pytestpep8 pytestflakes pytest glibcLocales ];
  checkPhase = ''
    py.test
  '';

  meta = with stdenv.lib; {
    description = "A library to parse MT940 files and returns smart Python collections for statistics and manipulation";
    homepage = https://pythonhosted.org/mt-940/;
    license = licenses.bsd3;
  };
}