From 76f41087cbe5e9c7d3041a550e169c2e3d56ca87 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 10 Aug 2022 18:32:02 +0800 Subject: [PATCH] swh-core: init at 2.13.1 --- pkgs/software-heritage/swh-core.nix | 48 +++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 pkgs/software-heritage/swh-core.nix 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; + }; +}