summary refs log tree commit diff
path: root/pkgs/development/python-modules/mt-940/default.nix
blob: e7f382f8ac7c3ff5bb994d46d0d7df5936430106 (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
{ lib, buildPythonPackage, fetchPypi, isPy3k
, enum34, pyyaml, pytest
}:

buildPythonPackage rec {
  version = "4.18.0";
  pname = "mt-940";

  src = fetchPypi {
    inherit pname version;
    sha256 = "e5b6469e9bc64522125efae1de0e557f76884c961f122028098533d6f2a98f23";
  };

  propagatedBuildInputs = lib.optional (!isPy3k) enum34;

  checkInputs = [ pyyaml pytest ];

  checkPhase = ''
    py.test
  '';

  meta = with lib; {
    description = "A library to parse MT940 files and returns smart Python collections for statistics and manipulation";
    homepage = https://github.com/WoLpH/mt940;
    license = licenses.bsd3;
  };
}