python3Packages.color-parser-py: init at 0.1.6

This commit is contained in:
aleksana
2025-07-09 17:52:13 +08:00
parent db1e62b7c0
commit 69fd239950
2 changed files with 46 additions and 0 deletions
@@ -0,0 +1,44 @@
{
lib,
buildPythonPackage,
fetchPypi,
rustPlatform,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "color-parser-py";
version = "0.1.6";
pyproject = true;
# PyPI has Cargo.lock
src = fetchPypi {
pname = "color_parser_py";
inherit version;
hash = "sha256-m1qhVAwQNtCwz+DLSAdfKhzkohMLMjvPHxynKhlJfN8=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-tKXA6sd5gLCJUaqxzFcZ3lePK41Wk2TbLp0HXBacOyo=";
};
nativeBuildInputs = [
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "color_parser_py" ];
# Support newer python versions
env.PYO3_USE_ABI3_FORWARD_COMPATIBILITY = true;
meta = {
description = "Python bindings for color parsing and conversion";
homepage = "https://github.com/rusiaaman/color-parser-py";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ aleksana ];
};
}
+2
View File
@@ -2761,6 +2761,8 @@ self: super: with self; {
color-operations = callPackage ../development/python-modules/color-operations { };
color-parser-py = callPackage ../development/python-modules/color-parser-py { };
colorama = callPackage ../development/python-modules/colorama { };
colorcet = callPackage ../development/python-modules/colorcet { };