Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchPypi, buildPythonPackage 2, six, sqlalchemy 3, mock, pytz, isort, flake8, jinja2, pg8000, pyodbc, pytest, pymysql, dateutil 4, docutils, flexmock, psycopg2, pygments }: 5 6buildPythonPackage rec { 7 pname = "sqlalchemy-utils"; 8 version = "0.36.6"; 9 10 src = fetchPypi { 11 inherit version; 12 pname = "SQLAlchemy-Utils"; 13 sha256 = "0srs5w486wp5zydjs70igi5ypgxhm6h73grb85jz03fqpqaanzvs"; 14 }; 15 16 propagatedBuildInputs = [ 17 six 18 sqlalchemy 19 ]; 20 21 # Attempts to access localhost and there's also no database access 22 doCheck = false; 23 checkInputs = [ 24 mock 25 pytz 26 isort 27 flake8 28 jinja2 29 pg8000 30 pyodbc 31 pytest 32 pymysql 33 dateutil 34 docutils 35 flexmock 36 psycopg2 37 pygments 38 ]; 39 40 checkPhase = '' 41 pytest tests 42 ''; 43 44 meta = with lib; { 45 homepage = "https://github.com/kvesteri/sqlalchemy-utils"; 46 description = "Various utility functions and datatypes for SQLAlchemy"; 47 license = licenses.bsd3; 48 maintainers = with maintainers; [ eadwu ]; 49 }; 50}