python3Packages.coloraide: 5.1 -> 6.1
Switched to using the original source repository instead of PyPI per the Nixpkgs manual. Bump the version from 5.1 to 6.1. Added the requisite dependencies to run the tests. Updated the derivation metadata to reflect the new source.
This commit is contained in:
@@ -1,21 +1,24 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
fetchFromGitHub,
|
||||
hatchling,
|
||||
lib,
|
||||
pytestCheckHook,
|
||||
typing-extensions,
|
||||
}:
|
||||
let
|
||||
pname = "coloraide";
|
||||
version = "5.1";
|
||||
version = "6.1";
|
||||
in
|
||||
buildPythonPackage {
|
||||
inherit pname version;
|
||||
pname = "coloraide";
|
||||
inherit version;
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-DfBmpjbb2EgZgfrEkCQNPtkGtANDx8AXErPfVC8rJ1A=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "facelessuser";
|
||||
repo = "coloraide";
|
||||
tag = version;
|
||||
hash = "sha256-hsuFouesw4B9rr17NCQVB6LyYUdNRm9Cj2Cqj+MdLkc=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
@@ -30,9 +33,13 @@ buildPythonPackage {
|
||||
"coloraide"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Color library for Python";
|
||||
homepage = "https://pypi.org/project/coloraide/";
|
||||
description = "Library to aid in using colors";
|
||||
homepage = "https://github.com/facelessuser/coloraide";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [
|
||||
lib.maintainers._9999years
|
||||
|
||||
Reference in New Issue
Block a user