nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 django,
7 typing-extensions,
8 inline-snapshot,
9 pytestCheckHook,
10 pytest-cov-stub,
11 pytest-django,
12}:
13
14buildPythonPackage rec {
15 pname = "django-choices-field";
16 version = "4.0.0";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "bellini666";
21 repo = "django-choices-field";
22 tag = "v${version}";
23 hash = "sha256-EnJMn6tAjhylY8qsT/T/N9v/w/vD+d93U2RMxwEcc84=";
24 };
25
26 build-system = [ poetry-core ];
27
28 dependencies = [
29 django
30 typing-extensions
31 ];
32
33 nativeCheckInputs = [
34 inline-snapshot
35 pytestCheckHook
36 pytest-cov-stub
37 pytest-django
38 ];
39
40 pythonImportsCheck = [ "django_choices_field" ];
41
42 meta = {
43 description = "Django field that set/get django's new TextChoices/IntegerChoices enum";
44 homepage = "https://github.com/bellini666/django-choices-field";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ minijackson ];
47 };
48}