diff --git a/pkgs/software-heritage/swh-core.nix b/pkgs/software-heritage/swh-core.nix new file mode 100644 index 00000000..bb5b48b8 --- /dev/null +++ b/pkgs/software-heritage/swh-core.nix @@ -0,0 +1,48 @@ +{ stdenv, lib, python3Packages, aiohttp-utils, ... }: + +with python3Packages; +buildPythonPackage rec { + pname = "swh-core"; + version = "2.13.1"; + + src = fetchPypi { + inherit version; + pname = "swh.core"; + sha256 = "sha256-na1S2jiRGlIOPpJ1H4Cp9+naK7bTuH6s2nmeo1xQXjQ="; + }; + + # Tests require network access. + doCheck = false; + + propagatedBuildInputs = [ + click + deprecated + pyyaml + python-magic + sentry-sdk + + # swh.core.db + psycopg2 + typing-extensions + + # swh.core.github + tenacity + requests + + # swh.core.api + aiohttp + aiohttp-utils + blinker + flask + iso8601 + msgpack + + setuptools-scm + ]; + + meta = with lib; { + description = "Software Heritage filesystem"; + homepage = "https://www.softwareheritage.org/"; + license = licenses.gpl3Only; + }; +}