diff options
author | Soispha <soispha@vhack.eu> | 2023-09-03 00:00:25 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-10-16 17:47:11 +0200 |
commit | 1f691cc04b9bfe6c43a602ee4c719e739446080c (patch) | |
tree | 29da53c649f29e238ee79e99151675bdf6c60d88 | |
parent | 2bd1c265317898e953bff5bb1c453942261adf35 (diff) | |
download | nixpkgs-1f691cc04b9bfe6c43a602ee4c719e739446080c.tar nixpkgs-1f691cc04b9bfe6c43a602ee4c719e739446080c.tar.gz nixpkgs-1f691cc04b9bfe6c43a602ee4c719e739446080c.tar.bz2 nixpkgs-1f691cc04b9bfe6c43a602ee4c719e739446080c.tar.lz nixpkgs-1f691cc04b9bfe6c43a602ee4c719e739446080c.tar.xz nixpkgs-1f691cc04b9bfe6c43a602ee4c719e739446080c.tar.zst nixpkgs-1f691cc04b9bfe6c43a602ee4c719e739446080c.zip |
migra: init at 3.0.1647431138
-rw-r--r-- | pkgs/by-name/mi/migra/package.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/by-name/mi/migra/package.nix b/pkgs/by-name/mi/migra/package.nix new file mode 100644 index 00000000000..8fd3ef6332e --- /dev/null +++ b/pkgs/by-name/mi/migra/package.nix @@ -0,0 +1,59 @@ +{ lib +, python3 +, fetchFromGitHub +, postgresql +, postgresqlTestHook +, +}: +python3.pkgs.buildPythonApplication rec { + pname = "migra"; + version = "3.0.1647431138"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "djrobstep"; + repo = pname; + rev = version; + hash = "sha256-LSCJA5Ym1LuV3EZl6gnl9jTHGc8A1LXmR1fj0ZZc+po="; + }; + + nativeBuildInputs = [ + python3.pkgs.poetry-core + ]; + + propagatedBuildInputs = with python3.pkgs; [ + schemainspect + six + sqlbag + ]; + + nativeCheckInputs = with python3.pkgs; [ + pytestCheckHook + postgresql + postgresqlTestHook + ]; + preCheck = '' + export PGUSER="nixbld"; + ''; + disabledTests = [ + # These all fail with "List argument must consist only of tuples or dictionaries": + # See this issue: https://github.com/djrobstep/migra/issues/232 + "test_excludeschema" + "test_fixtures" + "test_rls" + "test_singleschema" + ]; + + pytestFlagsArray = [ + "-x" + "-svv" + "tests" + ]; + + meta = with lib; { + description = "Like diff but for PostgreSQL schemas"; + homepage = "https://github.com/djrobstep/migra"; + license = with licenses; [ unlicense ]; + maintainers = with maintainers; [ soispha ]; + }; +} |