nixos/pkgs/pyluxafor/default.nix

26 lines
547 B
Nix
Raw Normal View History

2023-09-11 20:23:04 +02:00
{
fetchFromGitHub,
buildPythonApplication,
click,
pyusb,
}:
2023-06-15 11:04:34 +02:00
buildPythonApplication rec {
pname = "pyluxafor";
version = "0.1.0";
src = fetchFromGitHub {
owner = "fmartingr";
repo = pname;
rev = "858fc0a331b34d48b107193e7e0bceb077daa4d8";
sha256 = "044czjg1xv9bz7rjw52iz3ck0c65bbmkg9r248zkv330dz345ijf";
};
preBuild = ''
substituteInPlace setup.py --replace '"click>=6.0,<=6.7.99",' ""
substituteInPlace setup.py --replace '"pyusb==1.0.0",' ""
'';
propagatedBuildInputs = [
click
pyusb
];
2023-06-15 11:04:34 +02:00
}