nur-packages

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

default.nix (891B)


      1 {
      2   lib,
      3   fetchFromGitHub,
      4   python3Packages,
      5 }:
      6 
      7 python3Packages.buildPythonPackage rec {
      8   pname = "python-cmr";
      9   version = "0.13.0";
     10   pyproject = true;
     11 
     12   src = fetchFromGitHub {
     13     owner = "nasa";
     14     repo = "python_cmr";
     15     rev = "v${version}";
     16     hash = "sha256-yQAWmX4PsaDx/x3AdQkVIOXAH72VvJ4Ow4QaoZq4/gc=";
     17   };
     18 
     19   build-system = with python3Packages; [ poetry-core ];
     20 
     21   dependencies = with python3Packages; [
     22     dateutil
     23     requests
     24     typing-extensions
     25   ];
     26 
     27   nativeCheckInputs = with python3Packages; [
     28     pytestCheckHook
     29     vcrpy
     30   ];
     31 
     32   disabledTestPaths = [ "tests/test_multiple_queries.py" ];
     33 
     34   pythonImportsCheck = [ "cmr" ];
     35 
     36   meta = {
     37     description = "Python wrapper to the NASA Common Metadata Repository (CMR) API";
     38     homepage = "https://github.com/nasa/python_cmr";
     39     license = lib.licenses.mit;
     40     maintainers = [ lib.maintainers.sikmir ];
     41   };
     42 }