python310Packages.logilab-constraint: refactor

- pretty formatting
- enable checkPhase
- update meta
This commit is contained in:
natsukium 2023-09-02 11:24:03 +09:00
parent cfd8b8fe1d
commit 6d24d4234b
No known key found for this signature in database
GPG key ID: 9EA45A31DB994C53

View file

@ -1,8 +1,18 @@
{ lib, buildPythonPackage, fetchPypi, logilab-common, six, importlib-metadata, pip }:
{ lib
, buildPythonPackage
, fetchPypi
, importlib-metadata
, logilab-common
, pip
, six
, pytestCheckHook
, setuptools
}:
buildPythonPackage rec {
pname = "logilab-constraint";
version = "0.6.2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
@ -15,13 +25,33 @@ buildPythonPackage rec {
];
propagatedBuildInputs = [
logilab-common six
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; {
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; [ ];
};
}