Merge pull request #237729 from moduon/py38-jsonschema
This commit is contained in:
commit
46114e23ff
3 changed files with 35 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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.9’s pkgutil.resolve_name.";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ yajo ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue