depot/third_party/nixpkgs/pkgs/development/python-modules/pynecil/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

47 lines
973 B
Nix

{
bleak,
buildPythonPackage,
fetchFromGitHub,
hatch-regex-commit,
hatchling,
lib,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pynecil";
version = "0.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "tr4nt0r";
repo = "pynecil";
rev = "refs/tags/v${version}";
hash = "sha256-57TPgEC7NY75iVj31tdpCOrXUOcsFBy/4XltEHxlNFk=";
};
build-system = [
hatch-regex-commit
hatchling
];
dependencies = [ bleak ];
pythonImportsCheck = [ "pynecil" ];
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytestCheckHook
];
meta = {
changelog = "https://github.com/tr4nt0r/pynecil/releases/tag/v${version}";
description = "Python library to communicate with Pinecil V2 soldering irons via Bluetooth";
homepage = "https://github.com/tr4nt0r/pynecil";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}