python310Packages.pylacrosse: patch version

This commit is contained in:
Fabian Affolter 2023-04-17 23:09:47 +02:00
parent fe2ecaf706
commit 7f0e744480

View file

@ -5,20 +5,31 @@
, nose
, pyserial
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pylacrosse";
version = "0.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "hthiery";
repo = "python-lacrosse";
rev = version;
sha256 = "0g5hqm8lq0gsnvhcydjk54rjf7lpxzph8k7w1nnvnqfbhf31xfcf";
rev = "refs/tags/${version}";
hash = "sha256-jrkehoPLYbutDfxMBO/vlx4nMylTNs/gtvoBTFHFsDw=";
};
propagatedBuildInputs = [ pyserial ];
postPatch = ''
substituteInPlace setup.py \
--replace "version = version," "version = '${version}',"
'';
propagatedBuildInputs = [
pyserial
];
nativeCheckInputs = [
mock
@ -26,7 +37,9 @@ buildPythonPackage rec {
pytestCheckHook
];
pythonImportsCheck = [ "pylacrosse" ];
pythonImportsCheck = [
"pylacrosse"
];
meta = with lib; {
description = "Python library for Jeelink LaCrosse";