Skip to content

Commit bef0b67

Browse files
committedMay 31, 2017
pythonPackages.treq: fix build
1 parent d842a38 commit bef0b67

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed
 

‎pkgs/development/python-modules/treq/default.nix

+11-20
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{ stdenv, fetchPypi, buildPythonPackage, service-identity, requests, six,
2-
mock, twisted, incremental, pep8, sphinx, openssl, pyopenssl, tox }:
1+
{ stdenv, fetchPypi, buildPythonPackage, service-identity, requests, six
2+
, mock, twisted, incremental, pep8 }:
33

44
buildPythonPackage rec {
55
name = "${pname}-${version}";
@@ -11,17 +11,7 @@ buildPythonPackage rec {
1111
sha256 = "1xhcpvsl3xqw0dq9sixk80iwyiv17djigp3815sy5pfgvvggcfii";
1212
};
1313

14-
buildInputs = [
15-
service-identity
16-
requests
17-
twisted
18-
incremental
19-
sphinx
20-
six
21-
openssl
22-
pyopenssl
23-
tox
24-
];
14+
propagatedBuildInputs = [ twisted requests six incremental service-identity ];
2515

2616
checkInputs = [
2717
pep8
@@ -32,15 +22,16 @@ buildPythonPackage rec {
3222
rm -fv src/treq/test/test_treq_integration.py
3323
'';
3424

35-
postBuild = ''
36-
# build documentation and install in $out
37-
tox -e docs
38-
mkdir -pv $out/docs
39-
cp -rv docs/* $out/docs/
40-
'';
25+
# XXX tox tries to install coverage despite it is installed
26+
#postBuild = ''
27+
# # build documentation and install in $out
28+
# tox -e docs
29+
# mkdir -pv $out/docs
30+
# cp -rv docs/* $out/docs/
31+
#'';
4132

4233
checkPhase = ''
43-
${pep8}/bin/pep8 --ignore=E902 treq
34+
pep8 --ignore=E902 treq
4435
trial treq
4536
'';
4637

0 commit comments

Comments
 (0)
Please sign in to comment.