File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
pkgs/development/python-modules/cynthion Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 2323
2424 # tests
2525 pytestCheckHook ,
26+ udevCheckHook ,
2627} :
2728buildPythonPackage rec {
2829 pname = "cynthion" ;
@@ -44,6 +45,8 @@ buildPythonPackage rec {
4445 --replace-fail 'dynamic = ["version"]' 'version = "${ version } "'
4546 '' ;
4647
48+ nativeBuildInputs = [ udevCheckHook ] ;
49+
4750 build-system = [
4851 setuptools
4952 ] ;
@@ -72,6 +75,13 @@ buildPythonPackage rec {
7275
7376 pythonImportsCheck = [ "cynthion" ] ;
7477
78+ # Make udev rules available for NixOS option services.udev.packages
79+ postInstall = ''
80+ install -Dm444 \
81+ -t $out/lib/udev/rules.d \
82+ build/lib/cynthion/assets/54-cynthion.rules
83+ '' ;
84+
7585 meta = {
7686 description = "Python package and utilities for the Great Scott Gadgets Cynthion USB Test Instrument" ;
7787 homepage = "https://github.com/greatscottgadgets/cynthion" ;
You can’t perform that action at this time.
0 commit comments