1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 00:54:46 +00:00
nixpkgs/pkgs/development/python-modules/django-pglocks/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
The `buildPython*` function computes name from `pname` and `version`.
This change removes `name` attribute from all expressions in
`pkgs/development/python-modules`.

While at it, some other minor changes were made as well, such as
replacing `fetchurl` calls with `fetchPypi`.
2018-06-23 18:14:26 +02:00

24 lines
555 B
Nix

{ lib, buildPythonPackage, fetchPypi, django }:
buildPythonPackage rec {
pname = "django-pglocks";
version = "1.0.2";
meta = {
description = "PostgreSQL locking context managers and functions for Django.";
homepage = https://github.com/Xof/django-pglocks;
license = lib.licenses.mit;
};
src = fetchPypi {
inherit pname version;
sha256 = "1ks4k0bk4457wfl3xgzr4v7xb0lxmnkhxwhlp0bbnmzipdafw1cl";
};
buildInputs = [ django ];
propagatedBuildInputs = [ django ];
# tests need a postgres database
doCheck = false;
}