diff --git a/pkgs/development/python-modules/pynecil/default.nix b/pkgs/development/python-modules/pynecil/default.nix new file mode 100644 index 000000000000..2066dc3ec02b --- /dev/null +++ b/pkgs/development/python-modules/pynecil/default.nix @@ -0,0 +1,47 @@ +{ + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 31a7f411148d..9b03a48fff1d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11826,6 +11826,8 @@ self: super: with self; { inherit (pkgs) which; }; + pynecil = callPackage ../development/python-modules/pynecil { }; + pynello = callPackage ../development/python-modules/pynello { }; pynest2d = callPackage ../development/python-modules/pynest2d { };