Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, fetchPypi, buildPythonPackage, nose, mock, glibcLocales, isPy3k }: 2 3buildPythonPackage rec { 4 pname = "parameterized"; 5 version = "0.7.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "d8c8837fb677ed2d5a93b9e2308ce0da3aeb58cf513120d501e0b7af14da78d5"; 10 }; 11 12 # Tests require some python3-isms but code works without. 13 doCheck = isPy3k; 14 15 checkInputs = [ nose mock glibcLocales ]; 16 17 checkPhase = '' 18 LC_ALL="en_US.UTF-8" nosetests -v 19 ''; 20 21 meta = with stdenv.lib; { 22 description = "Parameterized testing with any Python test framework"; 23 homepage = https://pypi.python.org/pypi/parameterized; 24 license = licenses.bsd3; 25 maintainers = with maintainers; [ ma27 ]; 26 }; 27}