nixpkgs/pkgs/development/python-modules/mt-940/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
723 B
Nix
Raw Normal View History

2019-04-03 14:29:24 +00:00
{ lib, buildPythonPackage, fetchPypi, isPy3k
, enum34, pyyaml, pytest
}:
buildPythonPackage rec {
version = "4.26.0";
2018-12-19 09:23:40 +00:00
pname = "mt-940";
2019-04-03 14:29:24 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-HL56TXZNkjVnap0XIhBT/xDA2N80NLCLpvuXkxXu6zE=";
};
2018-12-19 09:23:40 +00:00
propagatedBuildInputs = lib.optional (!isPy3k) enum34;
2019-04-03 14:29:24 +00:00
checkInputs = [ pyyaml pytest ];
2018-12-19 09:23:40 +00:00
# requires tests files that are not present
doCheck = false;
checkPhase = ''
2019-01-11 11:50:16 +00:00
py.test
'';
pythonImportsCheck = [ "mt940" ];
2019-04-03 14:29:24 +00:00
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;
};
}