From 95381cf70514fd309479f09f3f7711456b0bd2f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20K=C4=85dzio=C5=82ka?= Date: Mon, 2 Nov 2020 19:49:52 +0100 Subject: [PATCH] pythonPackages.sumtypes: init at 0.1a5 --- .../python-modules/sumtypes/default.nix | 23 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/python-modules/sumtypes/default.nix diff --git a/pkgs/development/python-modules/sumtypes/default.nix b/pkgs/development/python-modules/sumtypes/default.nix new file mode 100644 index 00000000000..4a3a22f2780 --- /dev/null +++ b/pkgs/development/python-modules/sumtypes/default.nix @@ -0,0 +1,23 @@ +{ lib, buildPythonPackage, fetchFromGitHub, attrs, pytestCheckHook }: + +buildPythonPackage rec { + pname = "sumtypes"; + version = "0.1a5"; + + src = fetchFromGitHub { + owner = "radix"; + repo = "sumtypes"; + rev = version; + sha256 = "0wcw1624xxx2h6lliv13b59blg60j8sgf5v2ni3cwx3j4wld4csr"; + }; + + propagatedBuildInputs = [ attrs ]; + checkInputs = [ pytestCheckHook ]; + + meta = with lib; { + description = "Algebraic data types for Python"; + homepage = "https://github.com/radix/sumtypes"; + license = licenses.mit; + maintainers = with maintainers; [ NieDzejkob ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d209c34bdd8..bdcbb6f2eaf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6926,6 +6926,8 @@ in { sumo = callPackage ../development/python-modules/sumo { }; + sumtypes = callPackage ../development/python-modules/sumtypes { }; + sunpy = callPackage ../development/python-modules/sunpy { }; supervise_api = callPackage ../development/python-modules/supervise_api { };