Commit 77d19d14 authored by Alexis Praga's avatar Alexis Praga
Browse files

spectra: init at 0.0.11.

Dependency for multiqc
parent d04cc63e
Loading
Loading
Loading
Loading
+49 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  colormath,
  fetchFromGitHub,
  fetchpatch2,
  lib,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "spectra";
  version = "0.0.11";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jsvine";
    repo = "spectra";
    tag = "v${version}";
    hash = "sha256-4A2TWTxYqckJ3DX5cd2KN3KXcmO/lQdXmOEnGi76RsA=";
  };

  patches = [
    # https://github.com/jsvine/spectra/pull/21
    (fetchpatch2 {
      name = "nose-to-pytest.patch";
      url = "https://github.com/jsvine/spectra/commit/50037aba16dac4bf0fb7ffbd787d0e6b906e8a4b.patch";
      hash = "sha256-cMoIbjRwcZjvhiIOcJR7NmIAOaqpr/e5eh9+sPGKqos=";
      excludes = [ ".github/*" ];
    })
  ];

  build-system = [
    setuptools
  ];

  propagatedBuildInputs = [ colormath ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = {
    description = "Python library that makes color math, color scales, and color-space conversion easy";
    homepage = "https://github.com/jsvine/spectra";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ apraga ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -15158,6 +15158,8 @@ self: super: with self; {
  speaklater3 = callPackage ../development/python-modules/speaklater3 { };
  spectra = callPackage ../development/python-modules/spectra { };
  spectral-cube = callPackage ../development/python-modules/spectral-cube { };
  speechbrain = callPackage ../development/python-modules/speechbrain { };