Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 53 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, buildPythonPackage, fetchFromGitHub, hatchling, django, sqlparse, pytestCheckHook, pytest-django,}:
buildPythonPackage rec { pname = "django-sql-utils"; version = "0.7.0"; pyproject = true;
src = fetchFromGitHub { owner = "martsberger"; repo = "django-sql-utils"; tag = version; hash = "sha256-OjKPxoWYheu8UQ14KvyiQyHISAQjJep+N4HRc4Msa1w="; };
postPatch = '' echo -e "\n[tool.hatch.build.targets.wheel]\npackages = [ \"sql_util\" ]" >> pyproject.toml '';
build-system = [ hatchling ];
dependencies = [ django sqlparse ];
env = { DJANGO_SETTINGS_MODULE = "sql_util.tests.test_sqlite_settings"; };
nativeCheckInputs = [ pytestCheckHook pytest-django ];
pythonImportsCheck = [ "sql_util" ];
meta = { description = "SQL utilities for Django"; homepage = "https://github.com/martsberger/django-sql-utils"; changelog = "https://github.com/martsberger/django-sql-utils/releases/tag/${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ defelo ]; };}