summary refs log blame commit diff
path: root/pkgs/development/python-modules/colorzero/default.nix
blob: e2383dddf4de9ed36aa2b08a4c64d05cb016eb17 (plain) (tree)
1
2
3
4



                    




















                                                                 

                       





                        
                       









                                                         
{ lib
, buildPythonPackage
, fetchFromGitHub
, pkginfo
, pytestCheckHook
}:


buildPythonPackage rec {
  pname = "colorzero";
  version = "2.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "waveform80";
    repo = pname;
    rev = "refs/tags/release-${version}";
    hash = "sha256-0NoQsy86OHQNLZsTEuF5s2MlRUoacF28jNeHgFKAH14=";
  };

  postPatch = ''
    substituteInPlace setup.cfg \
      --replace "--cov" ""
  '';

  nativeBuildInputs = [
    pkginfo
  ];

  pythonImportsCheck = [
    "colorzero"
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = with lib; {
    description = "Yet another Python color library";
    homepage = "https://github.com/waveform80/colorzero";
    license = licenses.bsd3;
    maintainers = with maintainers; [ hexa ];
  };
}