nur-packages

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

package.nix (938B)


      1 {
      2   lib,
      3   fetchFromGitHub,
      4   python3Packages,
      5   binapy,
      6   jwskate,
      7 }:
      8 
      9 python3Packages.buildPythonPackage (finalAttrs: {
     10   pname = "requests-oauth2client";
     11   version = "1.8.0";
     12   pyproject = true;
     13 
     14   src = fetchFromGitHub {
     15     owner = "guillp";
     16     repo = "requests_oauth2client";
     17     tag = "v${finalAttrs.version}";
     18     hash = "sha256-ve4oBPz98fE+02BqDdlmVQPlM14DvfnknRM0TZCKxk4=";
     19   };
     20 
     21   build-system = with python3Packages; [ hatchling ];
     22 
     23   dependencies = with python3Packages; [
     24     attrs
     25     binapy
     26     furl
     27     jwskate
     28     requests
     29   ];
     30 
     31   nativeCheckInputs = with python3Packages; [
     32     pytestCheckHook
     33     pytest-cov-stub
     34     pytest-examples
     35     pytest-freezer
     36     pytest-mock
     37     requests-mock
     38   ];
     39 
     40   meta = {
     41     description = "An OAuth2.x client based on `requests`";
     42     homepage = "https://github.com/guillp/requests-oauth2client";
     43     license = lib.licenses.asl20;
     44     maintainers = [ lib.maintainers.sikmir ];
     45   };
     46 })