12 buildPythonPackage rec {
15 format = "setuptools";
17 disabled = pythonOlder "3.7";
19 src = fetchFromGitHub {
21 repo = "python-lacrosse";
22 rev = "refs/tags/${version}";
23 hash = "sha256-jrkehoPLYbutDfxMBO/vlx4nMylTNs/gtvoBTFHFsDw=";
27 # Migrate to pytest, https://github.com/hthiery/python-lacrosse/pull/17
29 url = "https://github.com/hthiery/python-lacrosse/commit/cc2623c667bc252360a9b5ccb4fc05296cf23d9c.patch?full_index=1";
30 hash = "sha256-LKryLnXMKj1lVClneyHNVOWM5KPPhOGy0/FX/7Qy/jU=";
35 substituteInPlace setup.py \
36 --replace "version = version," "version = '${version}',"
39 propagatedBuildInputs = [ pyserial ];
46 pythonImportsCheck = [ "pylacrosse" ];
49 description = "Python library for Jeelink LaCrosse";
50 mainProgram = "pylacrosse";
51 homepage = "https://github.com/hthiery/python-lacrosse";
52 license = with licenses; [ lgpl2Plus ];
53 maintainers = with maintainers; [ fab ];