nur-packages

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

default.nix (835B)


      1 {
      2   lib,
      3   python3Packages,
      4   replaceVars,
      5   locale,
      6 }:
      7 
      8 python3Packages.buildPythonPackage rec {
      9   pname = "click";
     10   version = "6.7";
     11   pyproject = true;
     12 
     13   src = python3Packages.fetchPypi {
     14     inherit pname version;
     15     hash = "sha256-8VUW30eNWlYYD7+A5o8gYBDm0WD8OfpQi2XgNf11Ews=";
     16   };
     17 
     18   patches = lib.optionals (lib.versionAtLeast version "6.7") [
     19     (replaceVars ./fix-paths.patch {
     20       locale = "${locale}/bin/locale";
     21     })
     22   ];
     23 
     24   build-system = with python3Packages; [ setuptools ];
     25 
     26   nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
     27 
     28   disabledTests = [
     29     # https://github.com/pallets/click/issues/823
     30     "test_legacy_callbacks"
     31   ];
     32 
     33   meta = {
     34     homepage = "http://click.pocoo.org/";
     35     description = "Create beautiful command line interfaces in Python";
     36     license = lib.licenses.bsd3;
     37   };
     38 }