Merge pull request #329679 from dotlambda/python3Packages.inflect

This commit is contained in:
Jon Seager 2024-07-24 22:29:40 +01:00 committed by GitHub
commit c59c2c9de3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 17 deletions

View File

@ -13,7 +13,6 @@
let
python = python3.override {
packageOverrides = self: super: {
pydantic = self.pydantic_1;
pydantic-yaml = super.pydantic-yaml.overridePythonAttrs (old: rec {
version = "0.11.2";
src = fetchFromGitHub {
@ -30,10 +29,6 @@ let
types-deprecated
];
});
versioningit = super.versioningit.overridePythonAttrs (old: rec {
# incompatible with pydantic_1
doCheck = false;
});
};
};
in

View File

@ -1,31 +1,32 @@
{
lib,
buildPythonPackage,
fetchPypi,
isPy27,
pythonOlder,
fetchFromGitHub,
more-itertools,
setuptools-scm,
pydantic,
pytestCheckHook,
typeguard,
}:
buildPythonPackage rec {
pname = "inflect";
version = "7.2.1";
disabled = isPy27;
format = "pyproject";
version = "7.3.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-p85eI9Z5hzTyVsGtntUhhrjsJ28QsYzj0+yxnCHrbLY=";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jaraco";
repo = "inflect";
rev = "refs/tags/v${version}";
hash = "sha256-J0XgSKPzZIt/7WnMGARXpyYzagBGiqRiuNmNnGKDBrs=";
};
nativeBuildInputs = [ setuptools-scm ];
build-system = [ setuptools-scm ];
propagatedBuildInputs = [
dependencies = [
more-itertools
pydantic
typeguard
];