From b34aec224d234a75adada4afd29326ac71842b97 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 1 Sep 2022 13:10:13 +0800 Subject: [PATCH] material-color-utilities-python: init at 0.1.5 --- .../material-color-utilities/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/python-modules/material-color-utilities/default.nix diff --git a/pkgs/development/python-modules/material-color-utilities/default.nix b/pkgs/development/python-modules/material-color-utilities/default.nix new file mode 100644 index 000000000000..ed224b244f4b --- /dev/null +++ b/pkgs/development/python-modules/material-color-utilities/default.nix @@ -0,0 +1,28 @@ +{ stdenv, lib, buildPythonPackage, fetchPypi, pillow, regex }: + +buildPythonPackage rec { + pname = "material-color-utilities-python"; + version = "0.1.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-PG8C585wWViFRHve83z3b9NijHyV+iGY2BdMJpyVH64="; + }; + + propagatedBuildInputs = [ + pillow + regex + ]; + + # No tests implemented. + doCheck = false; + + pythonImportsCheck = [ "material_color_utilities_python" ]; + + meta = with lib; { + homepage = "https://pypi.org/project/material_color_utilities_python"; + description = "Python port of material_color_utilities used for Material You colors"; + license = licenses.asl20; + maintainers = with maintainers; [ foo-dogsquared ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f24f353537b6..879c9d5fbb75 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5832,6 +5832,8 @@ self: super: with self; { mat2 = callPackage ../development/python-modules/mat2 { }; + material-color-utilities = callPackage ../development/python-modules/material-color-utilities { }; + matchpy = callPackage ../development/python-modules/matchpy { }; mathlibtools = callPackage ../development/python-modules/mathlibtools { };