depot/third_party/nixpkgs/pkgs/development/python-modules/wtf-peewee/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

41 lines
702 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 = [ ];
};
}