python310Packages.pylacrosse: patch version
This commit is contained in:
parent
fe2ecaf706
commit
7f0e744480
1 changed files with 17 additions and 4 deletions
|
@ -5,20 +5,31 @@
|
||||||
, nose
|
, nose
|
||||||
, pyserial
|
, pyserial
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pylacrosse";
|
pname = "pylacrosse";
|
||||||
version = "0.4";
|
version = "0.4";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hthiery";
|
owner = "hthiery";
|
||||||
repo = "python-lacrosse";
|
repo = "python-lacrosse";
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
sha256 = "0g5hqm8lq0gsnvhcydjk54rjf7lpxzph8k7w1nnvnqfbhf31xfcf";
|
hash = "sha256-jrkehoPLYbutDfxMBO/vlx4nMylTNs/gtvoBTFHFsDw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pyserial ];
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "version = version," "version = '${version}',"
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
pyserial
|
||||||
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
mock
|
mock
|
||||||
|
@ -26,7 +37,9 @@ buildPythonPackage rec {
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "pylacrosse" ];
|
pythonImportsCheck = [
|
||||||
|
"pylacrosse"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python library for Jeelink LaCrosse";
|
description = "Python library for Jeelink LaCrosse";
|
||||||
|
|
Loading…
Reference in a new issue