mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-04 11:50:04 +00:00
42 lines
741 B
Nix
42 lines
741 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
django,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "django-pglocks";
|
|
version = "1.0.4";
|
|
pyproject = true;
|
|
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchPypi {
|
|
inherit (finalAttrs) pname version;
|
|
hash = "sha256-PEfGb7+9Jo70YmlnOgUWoDlTmwlyuO0uyc/uRMS2VSM=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
buildInputs = [ django ];
|
|
|
|
dependencies = [
|
|
django
|
|
six
|
|
];
|
|
|
|
# tests need a postgres database
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "django_pglocks" ];
|
|
|
|
meta = {
|
|
description = "PostgreSQL locking context managers and functions for Django";
|
|
homepage = "https://github.com/Xof/django-pglocks";
|
|
license = lib.licenses.mit;
|
|
};
|
|
})
|