Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 28 lines 669 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, isPy3k, funcsigs, pytest, numpy }: 2 3buildPythonPackage rec { 4 version = "1.1.1"; 5 pname = "mockito"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "142f5e8865a422ad2d67b9c67a382e3296e8f1633dbccd0e322180fba7d5303d"; 10 }; 11 12 # Failing tests due 2to3 13 doCheck = !isPy3k; 14 15 propagatedBuildInputs = stdenv.lib.optionals (!isPy3k) [ funcsigs ]; 16 checkInputs = [ pytest numpy ]; 17 18 checkPhase = '' 19 pytest 20 ''; 21 22 meta = with stdenv.lib; { 23 description = "Spying framework"; 24 homepage = https://github.com/kaste/mockito-python; 25 license = licenses.mit; 26 maintainers = [ maintainers.marsam ]; 27 }; 28}