Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 27 lines 578 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, pythonAtLeast 5, python 6}: 7 8if (pythonAtLeast "3.3") then null else buildPythonPackage rec { 9 pname = "ipaddress"; 10 version = "1.0.22"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "b146c751ea45cad6188dd6cf2d9b757f6f4f8d6ffb96a023e6f2e26eea02a72c"; 15 }; 16 17 checkPhase = '' 18 ${python.interpreter} test_ipaddress.py 19 ''; 20 21 meta = with stdenv.lib; { 22 description = "Port of the 3.3+ ipaddress module to 2.6, 2.7, and 3.2"; 23 homepage = https://github.com/phihag/ipaddress; 24 license = licenses.psfl; 25 }; 26 27}