nur-packages

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

package.nix (1182B)


      1 {
      2   lib,
      3   python3Packages,
      4   fetchFromGitHub,
      5   pycouchdb,
      6   requests-oauth2client,
      7 }:
      8 
      9 python3Packages.buildPythonPackage (finalAttrs: {
     10   pname = "hardpy";
     11   version = "0.22.1";
     12   pyproject = true;
     13 
     14   src = fetchFromGitHub {
     15     owner = "everypinio";
     16     repo = "hardpy";
     17     tag = finalAttrs.version;
     18     hash = "sha256-LxM5Q3XZnL3iJT2c7nSo44PWm98hP+pI2B1SuQfTGZY=";
     19   };
     20 
     21   postPatch = ''
     22     substituteInPlace pyproject.toml \
     23       --replace-fail "hatchling==1.27.0" "hatchling"
     24   '';
     25 
     26   build-system = with python3Packages; [ hatchling ];
     27 
     28   pythonRelaxDeps = true;
     29 
     30   dependencies = with python3Packages; [
     31     fastapi
     32     glom
     33     jinja2
     34     keyring
     35     natsort
     36     oauthlib
     37     py-machineid
     38     pycouchdb
     39     pydantic
     40     pytest
     41     qrcode
     42     requests
     43     requests-oauth2client
     44     requests-oauthlib
     45     tomli
     46     tomli-w
     47     typer
     48     tzlocal
     49     uuid6
     50     uvicorn
     51   ];
     52 
     53   doCheck = false;
     54 
     55   nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
     56 
     57   meta = {
     58     description = "HardPy library for device testing";
     59     homepage = "https://everypinio.github.io/hardpy/";
     60     license = lib.licenses.gpl3Plus;
     61     maintainers = [ lib.maintainers.sikmir ];
     62   };
     63 })