Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 26 lines 692 B view raw
1{ lib, buildPythonPackage, fetchPypi, flask, pytest, pytestcov, pytest-xprocess }: 2 3buildPythonPackage rec { 4 pname = "Flask-Caching"; 5 version = "1.7.2"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "17jnnmnpdflv120yhsfbnpick06iias6f2hcxmf1mi1nr35kdqjj"; 10 }; 11 12 propagatedBuildInputs = [ flask ]; 13 14 checkInputs = [ pytest pytestcov pytest-xprocess ]; 15 16 # backend_cache relies on pytest-cache, which is a stale package from 2013 17 checkPhase = '' 18 pytest -k 'not backend_cache' 19 ''; 20 21 meta = with lib; { 22 description = "Adds caching support to your Flask application"; 23 homepage = "https://github.com/sh4nks/flask-caching"; 24 license = licenses.bsd3; 25 }; 26}