File tree 1 file changed +16
-23
lines changed
pkgs/development/python-modules/monty
1 file changed +16
-23
lines changed Original file line number Diff line number Diff line change 1
1
{ lib
2
2
, buildPythonPackage
3
3
, fetchFromGitHub
4
- , pythonOlder
5
- , msgpack
4
+ , isPy27
6
5
, nose
7
6
, numpy
8
- , pydantic
9
- , pymongo
7
+ , six
10
8
, ruamel_yaml
11
- , tqdm
9
+ , msgpack
10
+ , coverage
11
+ , coveralls
12
+ , pymongo
13
+ , lsof
12
14
} :
13
15
14
16
buildPythonPackage rec {
15
17
pname = "monty" ;
16
18
version = "2021.3.3" ;
17
- disabled = pythonOlder "3.5" ; # uses type annotations
19
+ disabled = isPy27 ; # uses type annotations
18
20
19
21
# No tests in Pypi
20
22
src = fetchFromGitHub {
@@ -24,30 +26,21 @@ buildPythonPackage rec {
24
26
sha256 = "1nbv0ys0fv70rgzskkk8gsfr9dsmm7ykim5wv36li840zsj83b1l" ;
25
27
} ;
26
28
27
- propagatedBuildInputs = [
28
- ruamel_yaml
29
- tqdm
30
- msgpack
31
- ] ;
29
+ checkInputs = [ lsof nose numpy msgpack coverage coveralls pymongo ] ;
30
+ propagatedBuildInputs = [ six ruamel_yaml ] ;
32
31
33
- checkInputs = [
34
- nose
35
- numpy
36
- pydantic
37
- pymongo
38
- ] ;
32
+ # test suite tries to decode bytes, but msgpack now returns a str
33
+ # https://github.com/materialsvirtuallab/monty/pull/121
34
+ postPatch = ''
35
+ substituteInPlace tests/test_serialization.py \
36
+ --replace ".decode('utf-8')" ""
37
+ '' ;
39
38
40
39
preCheck = ''
41
40
substituteInPlace tests/test_os.py \
42
41
--replace 'self.assertEqual("/usr/bin/find", which("/usr/bin/find"))' '#'
43
42
'' ;
44
43
45
- checkPhase = ''
46
- runHook preCheck
47
- nosetests -v
48
- runHook postCheck
49
- '' ;
50
-
51
44
meta = with lib ; {
52
45
description = "Serves as a complement to the Python standard library by providing a suite of tools to solve many common problems" ;
53
46
longDescription = "
You can’t perform that action at this time.
0 commit comments