git.iko.soy/typeable/nixpkgs
on master help sign in
python.pkgs.pycares: 2.4.0 -> 3.0.0
commit99cd4a106320fd55444a111fffaf7cc9411dee02 authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de> dateTue 19 Mar 2019, 16:11 (8 years ago) parent5c52dcf
1 file changed+13−5
pkgs/development/python-modules/pycares/default.nix+13−5
pkgs/development/python-modules/pycares/default.nix+13−5
@@ -1,21 +1,29 @@
11{ stdenv
22, buildPythonPackage
33, fetchPypi
4−, pkgs
4+, python
5+, c-ares
6+, cffi
57}:
68
79buildPythonPackage rec {
810 pname = "pycares";
9− version = "2.4.0";
11+ version = "3.0.0";
1012
1113 src = fetchPypi {
1214 inherit pname version;
13− sha256 = "15pwsxsj1nr33n6x2918bfbzdnqv1qkwd2d5jgvxsm81zxnvgk0f";
15+ sha256 = "b253f5dcaa0ac7076b79388a3ac80dd8f3bd979108f813baade40d3a9b8bf0bd";
1416 };
1517
16− propagatedBuildInputs = [ pkgs.c-ares ];
18+ buildInputs = [ c-ares ];
1719
18− # No tests included
20+ propagatedBuildInputs = [ cffi ];
21+
22+ checkPhase = ''
23+ ${python.interpreter} tests/tests.py
24+ '';
25+
26+ # requires network access
1927 doCheck = false;
2028
2129 meta = with stdenv.lib; {