vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / by-name / mi / migra / package.nix
blob8fd3ef6332edc25ef921ca6e3e88b6ae4559d812
1 { lib
2 , python3
3 , fetchFromGitHub
4 , postgresql
5 , postgresqlTestHook
7 }:
8 python3.pkgs.buildPythonApplication rec {
9   pname = "migra";
10   version = "3.0.1647431138";
11   format = "pyproject";
13   src = fetchFromGitHub {
14     owner = "djrobstep";
15     repo = pname;
16     rev = version;
17     hash = "sha256-LSCJA5Ym1LuV3EZl6gnl9jTHGc8A1LXmR1fj0ZZc+po=";
18   };
20   nativeBuildInputs = [
21     python3.pkgs.poetry-core
22   ];
24   propagatedBuildInputs = with python3.pkgs; [
25     schemainspect
26     six
27     sqlbag
28   ];
30   nativeCheckInputs = with python3.pkgs; [
31     pytestCheckHook
32     postgresql
33     postgresqlTestHook
34   ];
35   preCheck = ''
36     export PGUSER="nixbld";
37   '';
38   disabledTests = [
39     # These all fail with "List argument must consist only of tuples or dictionaries":
40     # See this issue: https://github.com/djrobstep/migra/issues/232
41     "test_excludeschema"
42     "test_fixtures"
43     "test_rls"
44     "test_singleschema"
45   ];
47   pytestFlagsArray = [
48     "-x"
49     "-svv"
50     "tests"
51   ];
53   meta = with lib; {
54     description = "Like diff but for PostgreSQL schemas";
55     homepage = "https://github.com/djrobstep/migra";
56     license = with licenses; [ unlicense ];
57     maintainers = with maintainers; [ soispha ];
58   };