python3Packages.vaa: init at 0.2.1
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
parent
9960131177
commit
55c1e633aa
56
pkgs/development/python-modules/vaa/default.nix
Normal file
56
pkgs/development/python-modules/vaa/default.nix
Normal file
@ -0,0 +1,56 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, flit-core
|
||||
, pytestCheckHook
|
||||
, cerberus
|
||||
, django
|
||||
, djangorestframework
|
||||
, marshmallow
|
||||
, pyschemes
|
||||
, wtforms
|
||||
, email_validator
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "vaa";
|
||||
version = "0.2.1";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "life4";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v.${version}";
|
||||
hash = "sha256-24GTTJSZ55ejyHoWP1/S3DLTKvOolAJr9UhWoOm84CU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "requires = [\"flit\"]" "requires = [\"flit_core\"]" \
|
||||
--replace "build-backend = \"flit.buildapi\"" "build-backend = \"flit_core.buildapi\""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
flit-core
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
cerberus
|
||||
django
|
||||
djangorestframework
|
||||
marshmallow
|
||||
pyschemes
|
||||
wtforms
|
||||
email_validator
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "vaa" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "VAlidators Adapter makes validation by any existing validator with the same interface";
|
||||
homepage = "https://github.com/life4/vaa";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ gador ];
|
||||
};
|
||||
}
|
@ -10762,6 +10762,8 @@ in {
|
||||
inherit (pkgs.darwin.apple_sdk.frameworks) ApplicationServices CoreServices;
|
||||
};
|
||||
|
||||
vaa = callPackage ../development/python-modules/vaa { };
|
||||
|
||||
validate-email = callPackage ../development/python-modules/validate-email { };
|
||||
|
||||
validators = callPackage ../development/python-modules/validators { };
|
||||
|
Loading…
Reference in New Issue
Block a user