22 lines
535 B
Nix
22 lines
535 B
Nix
{
|
|
fetchFromGitHub,
|
|
buildPythonApplication,
|
|
click,
|
|
pyusb,
|
|
}:
|
|
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];
|
|
}
|