My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/mt-940/default.nix

31 lines
723 B

{ lib, buildPythonPackage, fetchPypi, isPy3k
, enum34, pyyaml, pytest
}:
buildPythonPackage rec {
version = "4.26.0";
pname = "mt-940";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-HL56TXZNkjVnap0XIhBT/xDA2N80NLCLpvuXkxXu6zE=";
};
propagatedBuildInputs = lib.optional (!isPy3k) enum34;
checkInputs = [ pyyaml pytest ];
# requires tests files that are not present
doCheck = false;
checkPhase = ''
py.test
'';
pythonImportsCheck = [ "mt940" ];
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;
};
}