Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 cheroot, 7 dbutils, 8 mysqlclient, 9 pymysql, 10 mysql-connector, 11 psycopg2, 12}: 13 14buildPythonPackage rec { 15 version = "0.62"; 16 pname = "web.py"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "5ce684caa240654cae5950da8b4b7bc178812031e08f990518d072bd44ab525e"; 21 }; 22 23 propagatedBuildInputs = [ cheroot ]; 24 25 # requires multiple running databases 26 doCheck = false; 27 28 pythonImportsCheck = [ "web" ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 dbutils 33 mysqlclient 34 pymysql 35 mysql-connector 36 psycopg2 37 ]; 38 39 meta = with lib; { 40 description = "Makes web apps"; 41 longDescription = '' 42 Think about the ideal way to write a web app. 43 Write the code to make it happen. 44 ''; 45 homepage = "https://webpy.org/"; 46 license = licenses.publicDomain; 47 maintainers = with maintainers; [ layus ]; 48 }; 49}