blob: e25c6b9e01607f4c96d5f08a806aeb71f852ba94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{
stdenv,
lib,
buildPythonPackage,
django,
netaddr,
six,
fetchFromGitHub,
djangorestframework,
# required for tests
postgresql,
postgresqlTestHook,
psycopg2,
pytestCheckHook,
pytest-django,
}:
buildPythonPackage rec {
pname = "django-postgresql-netfields";
version = "1.3.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "jimfunk";
repo = "django-postgresql-netfields";
rev = "v${version}";
hash = "sha256-iZ6KmbVlp2nf3T0Pj4XD1einhoK0kmUmUXOZBmmrzZw=";
};
propagatedBuildInputs = [
django
netaddr
six
];
doCheck = !stdenv.hostPlatform.isDarwin; # could not create shared memory segment: Operation not permitted
nativeCheckInputs = [
djangorestframework
postgresql
postgresqlTestHook
psycopg2
pytestCheckHook
pytest-django
];
postgresqlTestUserOptions = "LOGIN SUPERUSER";
env.DJANGO_SETTINGS_MODULE = "testsettings";
meta = {
description = "Django PostgreSQL netfields implementation";
homepage = "https://github.com/jimfunk/django-postgresql-netfields";
changelog = "https://github.com/jimfunk/django-postgresql-netfields/blob/v${version}/CHANGELOG";
license = lib.licenses.bsd2;
maintainers = [ ];
};
}
|