Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 36 lines 905 B view raw
1{ buildPythonPackage, stdenv, pyyaml, pytest, enum34 2, pytestpep8, pytest-flakes, fetchFromGitHub, isPy3k, lib, glibcLocales 3}: 4 5buildPythonPackage rec { 6 version = "4.13.2"; 7 pname = "mt-940"; 8 9 # No tests in PyPI tarball 10 # See https://github.com/WoLpH/mt940/pull/72 11 src = fetchFromGitHub { 12 owner = "WoLpH"; 13 repo = "mt940"; 14 rev = "v${version}"; 15 sha256 = "1lvw3qyv7qhjabcvg55br8x4pnc7hv8xzzaf6wnr8cfjg0q7dzzg"; 16 }; 17 18 postPatch = '' 19 # No coverage report 20 sed -i "/--\(no-\)\?cov/d" pytest.ini 21 ''; 22 23 propagatedBuildInputs = lib.optional (!isPy3k) enum34; 24 25 checkInputs = [ pyyaml pytestpep8 pytest-flakes pytest ]; 26 27 checkPhase = '' 28 py.test 29 ''; 30 31 meta = with stdenv.lib; { 32 description = "A library to parse MT940 files and returns smart Python collections for statistics and manipulation"; 33 inherit (src.meta) homepage; 34 license = licenses.bsd3; 35 }; 36}