Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ lib, buildPythonPackage, fetchFromGitHub,
# build-system poetry-core,
# tests pytest-cov-stub, pytest-django, pytest-mock, pytest-randomly, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "django-test-migrations"; version = "1.7.0"; pyproject = true;
src = fetchFromGitHub { owner = "wemake-services"; repo = "django-test-migrations"; tag = finalAttrs.version; hash = "sha256-eCG+1iUx9V38qQjNla0azmOJbB/Gl/x4yQ6Z+9M0YKo="; };
build-system = [ poetry-core ];
preCheck = '' export DJANGO_DATABASE_NAME=test_db '';
nativeCheckInputs = [ pytest-cov-stub pytest-django pytest-mock pytest-randomly pytestCheckHook ];
disabledTests = [ # nested pytest calls complain about import file mismatch (out vs source) "test_call_pytest_setup_plan" "test_pytest_markers" ];
pythonImportsCheck = [ "django_test_migrations" ];
meta = { description = "Test django schema and data migrations, including migrations' order and best practices"; homepage = "https://github.com/wemake-services/django-test-migrations"; changelog = "https://github.com/wemake-services/django-test-migrations/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = [ ]; };})