Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 28 lines 779 B view raw
1{ stdenv, fetchPypi, buildPythonPackage, nose, mock, glibcLocales, isPy3k, isPy38 }: 2 3buildPythonPackage rec { 4 pname = "parameterized"; 5 version = "0.7.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "6a94dbea30c6abde99fd4c2f2042c1bf7f980e48908bf92ead62394f93cf57ed"; 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}