Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 30 lines 554 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5}: 6 7buildPythonPackage rec { 8 pname = "six"; 9 version = "1.12.0"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73"; 14 }; 15 16 checkInputs = [ pytest ]; 17 18 checkPhase = '' 19 py.test test_six.py 20 ''; 21 22 # To prevent infinite recursion with pytest 23 doCheck = false; 24 25 meta = { 26 description = "A Python 2 and 3 compatibility library"; 27 homepage = https://pypi.python.org/pypi/six/; 28 license = lib.licenses.mit; 29 }; 30}