mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{ stdenv
|
|
, lib
|
|
, async-timeout
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-asyncio
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pescea";
|
|
version = "1.0.12";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lazdavila";
|
|
repo = pname;
|
|
# https://github.com/lazdavila/pescea/issues/4
|
|
rev = "a3dd7deedc64205e24adbc4ff406a2f6aed3b240";
|
|
hash = "sha256-5TkFrGaSkQOORhf5a7SjkzggFLPyqe9k3M0B4ljhWTQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
async-timeout
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
# https://github.com/lazdavila/pescea/pull/1
|
|
substituteInPlace setup.py \
|
|
--replace '"asyncio",' ""
|
|
'';
|
|
|
|
disabledTests = [
|
|
# AssertionError: assert <State.BUSY: 'BusyWaiting'>...
|
|
"test_updates_while_busy"
|
|
# Test requires network access
|
|
"test_flow_control"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pescea"
|
|
];
|
|
|
|
meta = with lib; {
|
|
broken = stdenv.isDarwin;
|
|
description = "Python interface to Escea fireplaces";
|
|
homepage = "https://github.com/lazdavila/pescea";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|