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