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