Files
nixpkgs/pkgs/development/python-modules/pypugjs/default.nix
T
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

53 lines
954 B
Nix

{ lib
, buildPythonPackage
, charset-normalizer
, django
, fetchFromGitHub
, jinja2
, mako
, nose
, pyramid
, pyramid-mako
, pytestCheckHook
, six
, tornado
}:
buildPythonPackage rec {
pname = "pypugjs";
version = "5.9.12";
format = "setuptools";
src = fetchFromGitHub {
owner = "kakulukia";
repo = "pypugjs";
rev = "v${version}";
hash = "sha256-6tIhKCa8wg01gNFygCS6GdUHfbWBu7wOZeMkCExRR34=";
};
propagatedBuildInputs = [ six charset-normalizer ];
nativeCheckInputs = [
django
jinja2
mako
nose
tornado
pyramid
pyramid-mako
pytestCheckHook
];
pytestCheckFlags = [
"pypugjs/testsuite"
];
meta = with lib; {
description = "PugJS syntax template adapter for Django, Jinja2, Mako and Tornado templates";
mainProgram = "pypugjs";
homepage = "https://github.com/kakulukia/pypugjs";
license = licenses.mit;
maintainers = with maintainers; [ lopsided98 ];
};
}