nur-packages

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

default.nix (978B)


      1 {
      2   lib,
      3   python3Packages,
      4   fetchFromGitHub,
      5   pycouchdb,
      6 }:
      7 
      8 python3Packages.buildPythonPackage rec {
      9   pname = "hardpy";
     10   version = "0.4.0";
     11   pyproject = true;
     12   disabled = python3Packages.pythonOlder "3.10";
     13 
     14   src = fetchFromGitHub {
     15     owner = "everypinio";
     16     repo = "hardpy";
     17     rev = version;
     18     hash = "sha256-CVn5Edon1auXNFFNRGnt2i1j9TJo+uX194a22tIQpVE=";
     19   };
     20 
     21   postPatch = ''
     22     substituteInPlace pyproject.toml \
     23       --replace-fail "hatchling==1.21.1" "hatchling"
     24   '';
     25 
     26   build-system = with python3Packages; [ hatchling ];
     27 
     28   dependencies = with python3Packages; [
     29     pycouchdb
     30     glom
     31     pydantic
     32     natsort
     33     fastapi
     34     uvicorn
     35     pytest
     36   ];
     37 
     38   doCheck = false;
     39 
     40   nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
     41 
     42   meta = {
     43     description = "HardPy library for device testing";
     44     homepage = "https://everypinio.github.io/hardpy/";
     45     license = lib.licenses.gpl3Plus;
     46     maintainers = [ lib.maintainers.sikmir ];
     47   };
     48 }