39 lines
819 B
Nix
39 lines
819 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
django,
|
|
psycopg,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-pgactivity";
|
|
version = "1.5.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Opus10";
|
|
repo = "django-pgactivity";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-jOpm/vYy3Ubi+NfvARH19ozZMUgyGD/ZztqxKNvAoLQ=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
django
|
|
psycopg
|
|
];
|
|
|
|
pythonImportsCheck = [ "pgactivity" ];
|
|
|
|
meta = {
|
|
description = "View, filter, and kill Postgres queries";
|
|
homepage = "https://github.com/Opus10/django-pgactivity";
|
|
changelog = "https://github.com/Opus10/django-pgactivity/blob/${version}/CHANGELOG.md";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ jopejoe1 ];
|
|
};
|
|
}
|