Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5 6# build-system 7, poetry-core 8 9# runtime 10, click 11, peewee 12 13# tests 14, psycopg2 15, pytestCheckHook 16}: 17 18buildPythonPackage rec { 19 pname = "peewee-migrate"; 20 version = "1.10.1"; 21 format = "pyproject"; 22 23 src = fetchFromGitHub { 24 owner = "klen"; 25 repo = "peewee_migrate"; 26 rev = "refs/tags/${version}"; 27 hash = "sha256-SBHeXHfhYjyXr+tODryKQfxZKy7l4ez5C6eU6FjS2qI="; 28 }; 29 30 nativeBuildInputs = [ 31 poetry-core 32 ]; 33 34 postPatch = '' 35 sed -i '/addopts/d' pyproject.toml 36 ''; 37 38 propagatedBuildInputs = [ 39 peewee 40 click 41 ]; 42 43 pythonImportsCheck = [ 44 "peewee_migrate" 45 ]; 46 47 nativeCheckInputs = [ 48 psycopg2 49 pytestCheckHook 50 ]; 51 52 meta = with lib; { 53 description = "Simple migration engine for Peewee"; 54 homepage = "https://github.com/klen/peewee_migrate"; 55 license = licenses.bsd3; 56 maintainers = with maintainers; [ hexa ]; 57 }; 58}