python312Packages.swh-model: init at 7.1.0
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitLab,
|
||||
setuptools,
|
||||
setuptools-scm,
|
||||
attrs,
|
||||
attrs-strict,
|
||||
dateutils,
|
||||
deprecated,
|
||||
hypothesis,
|
||||
iso8601,
|
||||
typing-extensions,
|
||||
click,
|
||||
dulwich,
|
||||
aiohttp,
|
||||
pytestCheckHook,
|
||||
pytz,
|
||||
types-click,
|
||||
types-python-dateutil,
|
||||
types-pytz,
|
||||
types-deprecated,
|
||||
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "swh-model";
|
||||
version = "7.1.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.softwareheritage.org";
|
||||
group = "swh";
|
||||
owner = "devel";
|
||||
repo = "swh-model";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-I0DaSipE5TVFqAdGkNo4e66l1x4A26EYk0F4tKMy33k=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
attrs
|
||||
attrs-strict
|
||||
click
|
||||
dulwich
|
||||
dateutils
|
||||
deprecated
|
||||
hypothesis
|
||||
iso8601
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "swh.model" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
aiohttp
|
||||
click
|
||||
pytestCheckHook
|
||||
pytz
|
||||
types-click
|
||||
types-python-dateutil
|
||||
types-pytz
|
||||
types-deprecated
|
||||
];
|
||||
|
||||
pytestFlagsArray = lib.optionals (stdenv.hostPlatform.isDarwin) [
|
||||
# OSError: [Errno 92] Illegal byte sequence
|
||||
"--deselect swh/model/tests/test_cli.py::TestIdentify::test_exclude"
|
||||
"--deselect swh/model/tests/test_from_disk.py::DirectoryToObjects::test_exclude"
|
||||
"--deselect swh/model/tests/test_from_disk.py::DirectoryToObjects::test_exclude_trailing"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Implementation of the Data model of the Software Heritage project, used to archive source code artifacts";
|
||||
homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-model";
|
||||
license = lib.licenses.gpl3Only;
|
||||
maintainers = with lib.maintainers; [ drupol ];
|
||||
};
|
||||
}
|
||||
@@ -17349,6 +17349,8 @@ self: super: with self; {
|
||||
|
||||
swagger-ui-bundle = callPackage ../development/python-modules/swagger-ui-bundle { };
|
||||
|
||||
swh-model = callPackage ../development/python-modules/swh-model { };
|
||||
|
||||
swift = callPackage ../development/python-modules/swift { };
|
||||
|
||||
swifter = callPackage ../development/python-modules/swifter { };
|
||||
|
||||
Reference in New Issue
Block a user