Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, flask 5, pytestCheckHook 6, pygments 7}: 8 9buildPythonPackage rec { 10 pname = "flask-gravatar"; 11 version = "0.5.0"; 12 13 src = fetchPypi { 14 pname = "Flask-Gravatar"; 15 inherit version; 16 sha256 = "YGZfMcLGEokdto/4Aek+06CIHGyOw0arxk0qmSP1YuE="; 17 }; 18 19 postPatch = '' 20 sed -i setup.py \ 21 -e "s|tests_require=tests_require,||g" \ 22 -e "s|extras_require=extras_require,||g" \ 23 -e "s|setup_requires=setup_requires,||g" 24 # pep8 is deprecated and cov not needed 25 substituteInPlace pytest.ini \ 26 --replace "--pep8" "" \ 27 --replace "--cov=flask_gravatar --cov-report=term-missing" "" 28 ''; 29 30 propagatedBuildInputs = [ 31 flask 32 ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 pygments 37 ]; 38 39 pythonImportsCheck = [ "flask_gravatar" ]; 40 41 meta = with lib; { 42 homepage = "https://github.com/zzzsochi/Flask-Gravatar"; 43 description = "Small and simple integration of gravatar into flask"; 44 license = licenses.bsd3; 45 maintainers = with maintainers; [ gador ]; 46 }; 47}