Merge pull request #252873 from natsukium/logilab/fix

python310Packages.logilab-common: 1.9.7 -> 1.10.0
This commit is contained in:
Matthias Beyer 2023-09-03 16:03:34 +02:00 committed by GitHub
commit f1c598746e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 6 deletions

View file

@ -12,14 +12,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "logilab-common"; pname = "logilab-common";
version = "1.9.7"; version = "1.10.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-/JlN9RlIRLbi9TL9V6SgO6ddPeKqLzK402DqkLBRuxM="; hash = "sha256-MoXt3tta5OimJUjOkWSMDCmXV0aS8N0W5bcANwAelYY=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -27,6 +27,7 @@ buildPythonPackage rec {
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
setuptools
mypy-extensions mypy-extensions
typing-extensions typing-extensions
] ++ lib.optionals (pythonOlder "3.8") [ ] ++ lib.optionals (pythonOlder "3.8") [

View file

@ -1,22 +1,57 @@
{ lib, buildPythonPackage, fetchPypi, logilab-common, six }: { lib
, buildPythonPackage
, fetchPypi
, importlib-metadata
, logilab-common
, pip
, six
, pytestCheckHook
, setuptools
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "logilab-constraint"; pname = "logilab-constraint";
version = "0.6.2"; version = "0.6.2";
format = "setuptools";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-Jk6wvvcDEeHfy7dUcjbnzFIeGBYm5tXzCI26yy+t2qs="; hash = "sha256-Jk6wvvcDEeHfy7dUcjbnzFIeGBYm5tXzCI26yy+t2qs=";
}; };
propagatedBuildInputs = [ nativeBuildInputs = [
logilab-common six importlib-metadata
pip
]; ];
propagatedBuildInputs = [
logilab-common
setuptools
six
];
nativeCheckInputs = [
pytestCheckHook
];
preCheck = ''
# avoid ModuleNotFoundError: No module named 'logilab.common' due to namespace
rm -r logilab
'';
disabledTests = [
# these tests are abstract test classes intended to be inherited
"Abstract"
];
pythonImportsCheck = [ "logilab.constraint" ];
meta = with lib; { meta = with lib; {
description = "logilab-database provides some classes to make unified access to different"; description = "logilab-database provides some classes to make unified access to different";
homepage = "https://www.logilab.org/project/logilab-database"; homepage = "https://forge.extranet.logilab.fr/open-source/logilab-constraint";
changelog = "https://forge.extranet.logilab.fr/open-source/logilab-constraint/-/blob/${version}/CHANGELOG.md";
license = licenses.lgpl21Plus;
maintainers = with lib.maintainers; [ ];
}; };
} }