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