depot/third_party/nixpkgs/pkgs/development/python-modules/logilab/constraint.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

55 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
importlib-metadata,
logilab-common,
pip,
six,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "logilab-constraint";
version = "1.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-UiE1FsHYJxvJd+lqCQKJQkAHXa5iRQYEzU9nDgrR6YY=";
};
nativeBuildInputs = [
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; {
description = "logilab-database provides some classes to make unified access to different";
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 = [ ];
};
}