git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #26224 from nand0p/txaio-fixes

txaio: 2.7.1 fixes

commit165c116a329e9df8886561bb22e0fc8cdf94a61c authorFrederik Rietdijk <freddyrietdijk@fridh.nl> dateTue 30 May 2017, 08:37 (9 years ago) parent86790f77983017
1 file changed+12−8
pkgs/development/python-modules/txaio/default.nix+12−8
pkgs/development/python-modules/txaio/default.nix+12−8
@@ -1,23 +1,27 @@
1−{ stdenv, buildPythonPackage, fetchurl,
2− pytest, mock, six, twisted
3−}:
1+{ stdenv, buildPythonPackage, fetchPypi, pytest, mock, six, twisted }:
2+
43buildPythonPackage rec {
54 name = "${pname}-${version}";
65 pname = "txaio";
76 version = "2.7.1";
87
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "1lmllmjjsqzl3w4faq2qhlgkaqn1yn1m7d99k822ib7qgz18bsly";
11+ };
12+
913 buildInputs = [ pytest mock ];
14+
1015 propagatedBuildInputs = [ six twisted ];
1116
17+ patchPhase = ''
18+ sed -i '152d' test/test_logging.py
19+ '';
20+
1221 checkPhase = ''
1322 py.test -k "not test_sdist"
1423 '';
1524
16− src = fetchurl {
17− url = "mirror://pypi/t/${pname}/${name}.tar.gz";
18− sha256 = "9eea85c27ff8ac28049a29b55383f5c162351f855860e5081ff4632d65a5b4d2";
19− };
20−
2125 meta = with stdenv.lib; {
2226 description = "Utilities to support code that runs unmodified on Twisted and asyncio.";
2327 homepage = "https://github.com/crossbario/txaio";