mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
49 lines
916 B
Nix
49 lines
916 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
|
|
# native
|
|
, setuptools-scm
|
|
|
|
# propagated
|
|
, django
|
|
|
|
# tests
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-widget-tweaks";
|
|
version = "1.4.12";
|
|
|
|
src = fetchFromGitHub { # package from Pypi missing runtests.py
|
|
owner = "jazzband";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1rhn2skx287k6nnkxlwvl9snbia6w6z4c2rqg22hwzbz5w05b24h";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
django
|
|
];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m django test --settings=tests.settings
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Tweak the form field rendering in templates, not in python-level form definitions.";
|
|
homepage = "https://github.com/jazzband/django-widget-tweaks";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [
|
|
maxxk
|
|
];
|
|
};
|
|
}
|