nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (809B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   python3Packages,
      6 }:
      7 
      8 python3Packages.buildPythonPackage rec {
      9   pname = "cmocean";
     10   version = "4.0.3";
     11   pyproject = true;
     12 
     13   src = fetchFromGitHub {
     14     owner = "matplotlib";
     15     repo = "cmocean";
     16     tag = "v${version}";
     17     hash = "sha256-Vi+tK2cAwqkoe2CEFCYEqMp28IgeH1MSJ+u3t6D8Zu8=";
     18   };
     19 
     20   build-system = with python3Packages; [ setuptools ];
     21 
     22   dependencies = with python3Packages; [
     23     matplotlib
     24     numpy
     25   ];
     26 
     27   doCheck = !stdenv.isDarwin;
     28 
     29   nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
     30 
     31   meta = {
     32     description = "Colormap setup for standardizing commonly-plotting oceanographic variables";
     33     homepage = "https://github.com/matplotlib/cmocean";
     34     license = lib.licenses.mit;
     35     maintainers = [ lib.maintainers.sikmir ];
     36   };
     37 }