Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / peewee-migrate / default.nix
blobdc7cefd00c0d305f2d758a924bc8373f3184a584
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
6 # build-system
7 , poetry-core
9 # runtime
10 , click
11 , peewee
13 # tests
14 , psycopg2
15 , pytestCheckHook
18 buildPythonPackage rec {
19   pname = "peewee-migrate";
20   version = "1.12.2";
21   format = "pyproject";
23   disabled = pythonOlder "3.8";
25   src = fetchFromGitHub {
26     owner = "klen";
27     repo = "peewee_migrate";
28     rev = "refs/tags/${version}";
29     hash = "sha256-jxM2cvlDsoiUlVoxdS3wpUKlwMveMraiR431A8kIdgI=";
30   };
32   postPatch = ''
33     sed -i '/addopts/d' pyproject.toml
34   '';
36   nativeBuildInputs = [
37     poetry-core
38   ];
40   propagatedBuildInputs = [
41     peewee
42     click
43   ];
45   pythonImportsCheck = [
46     "peewee_migrate"
47   ];
49   nativeCheckInputs = [
50     psycopg2
51     pytestCheckHook
52   ];
54   disabledTests = [
55     #  sqlite3.OperationalError: error in table order after drop column...
56     "test_migrator"
57   ];
59   meta = with lib; {
60     description = "Simple migration engine for Peewee";
61     homepage = "https://github.com/klen/peewee_migrate";
62     license = licenses.bsd3;
63     maintainers = with maintainers; [ hexa ];
64   };