Merge pull request #237729 from moduon/py38-jsonschema

This commit is contained in:
Sandro 2023-06-27 15:18:23 +02:00 committed by GitHub
commit 46114e23ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 0 deletions

View file

@ -7,6 +7,7 @@
, hatchling
, importlib-metadata
, importlib-resources
, pkgutil-resolve-name
, pyrsistent
, pythonOlder
, twisted
@ -54,6 +55,7 @@ buildPythonPackage rec {
typing-extensions
] ++ lib.optionals (pythonOlder "3.9") [
importlib-resources
pkgutil-resolve-name
];
passthru.optional-dependencies = {

View file

@ -0,0 +1,31 @@
{ buildPythonPackage
, fetchPypi
, lib
, nix-update-script
, pythonOlder
}:
buildPythonPackage rec {
pname = "pkgutil-resolve-name";
version = "1.3.10";
format = "flit";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "pkgutil_resolve_name";
inherit version;
hash = "sha256-NX1snmp1VlPP14iTgXwIU682XdUeyX89NYqBk3O70XQ=";
};
# has no tests
doCheck = false;
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://pypi.org/project/pkgutil_resolve_name/";
description = "A backport of Python 3.9s pkgutil.resolve_name.";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ yajo ];
};
}

View file

@ -7594,6 +7594,8 @@ self: super: with self; {
phonenumbers = callPackage ../development/python-modules/phonenumbers { };
pkgutil-resolve-name = callPackage ../development/python-modules/pkgutil-resolve-name { };
micloud = callPackage ../development/python-modules/micloud { };
msgraph-core = callPackage ../development/python-modules/msgraph-core { };