python311Packages.apischema: init at 0.18.0

This commit is contained in:
Fabian Affolter
2023-08-30 15:45:17 +02:00
parent c9c99c053a
commit 7e72ee73d5
2 changed files with 47 additions and 0 deletions
@@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, graphql-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "apischema";
version = "0.18.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "wyfo";
repo = "apischema";
rev = "refs/tags/v${version}";
hash = "sha256-DBFFCLi8cpASyGPNqZvYe3OTLSbNZ8QzaxjQkOiHxFc=";
};
passthru.optional-dependencies = {
graphql = [
graphql-core
];
};
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [
"apischema"
];
meta = with lib; {
description = "JSON (de)serialization, GraphQL and JSON schema generation using typing";
homepage = "https://github.com/wyfo/apischema";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
+2
View File
@@ -580,6 +580,8 @@ self: super: with self; {
apipkg = callPackage ../development/python-modules/apipkg { };
apischema = callPackage ../development/python-modules/apischema { };
apispec = callPackage ../development/python-modules/apispec { };
apispec-webframeworks = callPackage ../development/python-modules/apispec-webframeworks { };