depot/third_party/nixpkgs/pkgs/development/python-modules/wtf-peewee/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

40 lines
705 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
peewee,
wtforms,
python,
}:
buildPythonPackage rec {
pname = "wtf-peewee";
version = "3.0.5";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-LQbOWg65rPTSLRVK5vvqmdsRsXaDgcYZ54oqxgpWGRU=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
peewee
wtforms
];
checkPhase = ''
runHook preCheck
${python.interpreter} runtests.py
runHook postCheck
'';
meta = with lib; {
description = "WTForms integration for peewee models";
homepage = "https://github.com/coleifer/wtf-peewee/";
license = licenses.mit;
maintainers = [ ];
};
}