tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
python.pkgs.mt-940: 4.13.2 -> 4.15.0
Robert Schütz
6 years ago
cc33bcb0
f328510a
+9
-18
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
mt-940
default.nix
+9
-18
pkgs/development/python-modules/mt-940/default.nix
···
1
-
{ buildPythonPackage, stdenv, pyyaml, pytest, enum34
2
-
, pytestpep8, pytest-flakes, fetchFromGitHub, isPy3k, lib, glibcLocales
3
}:
4
5
buildPythonPackage 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
}
···
1
+
{ lib, buildPythonPackage, fetchPypi, isPy3k
2
+
, enum34, pyyaml, pytest
3
}:
4
5
buildPythonPackage rec {
6
+
version = "4.15.0";
7
pname = "mt-940";
8
9
+
src = fetchPypi {
10
+
inherit pname version;
11
+
sha256 = "4c1d5c23a9c3fec12a61ce3f61d8be107b4693be4a4b97381eca23f4a4dca8ed";
0
0
0
0
12
};
0
0
0
0
0
13
14
propagatedBuildInputs = lib.optional (!isPy3k) enum34;
15
16
+
checkInputs = [ pyyaml pytest ];
17
18
checkPhase = ''
19
py.test
20
'';
21
22
+
meta = with lib; {
23
description = "A library to parse MT940 files and returns smart Python collections for statistics and manipulation";
24
+
homepage = https://github.com/WoLpH/mt940;
25
license = licenses.bsd3;
26
};
27
}