Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 587c99295825
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 956820abc1de
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Dec 31, 2019

  1. Copy the full SHA
    36af8d3 View commit details

Commits on Jan 1, 2020

  1. Merge pull request #66208 from seqizz/g_djangopostnet

    django-postgresql-netfields: init at 1.2.2
    infinisil authored Jan 1, 2020
    Copy the full SHA
    956820a View commit details
Showing with 51 additions and 0 deletions.
  1. +49 −0 pkgs/development/python-modules/django-postgresql-netfields/default.nix
  2. +2 −0 pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{ stdenv
, buildPythonPackage
, django
, netaddr
, six
, fetchFromGitHub
# required for tests
#, djangorestframework
#, psycopg2
#, unittest2
}:

buildPythonPackage rec {
version = "1.2.2";
pname = "django-postgresql-netfields";

src = fetchFromGitHub {
owner = "jimfunk";
repo = "${pname}";
rev = "v${version}";
sha256 = "1rrh38f3zl3jk5ijs6g75dxxvxygf4lczbgc7ahrgzf58g4a48lm";
};

# tests need a postgres database
doCheck = false;

# keeping the dependencies below as comment for reference
# checkPhase = ''
# python manage.py test
# '';

# buildInputs = [
# djangorestframework
# psycopg2
# unittest2
# ];

propagatedBuildInputs = [
django
netaddr
six
];

meta = with stdenv.lib; {
description = "Django PostgreSQL netfields implementation";
homepage = https://github.com/jimfunk/django-postgresql-netfields;
license = licenses.bsd2;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -3160,6 +3160,8 @@ in {

django_polymorphic = callPackage ../development/python-modules/django-polymorphic { };

django-postgresql-netfields = callPackage ../development/python-modules/django-postgresql-netfields { };

django-rest-auth = callPackage ../development/python-modules/django-rest-auth { };

django-sampledatahelper = callPackage ../development/python-modules/django-sampledatahelper { };