depot/third_party/nixpkgs/pkgs/development/python-modules/pyelectra/default.nix

37 lines
811 B
Nix

{
aiohttp,
buildPythonPackage,
fetchFromGitHub,
lib,
setuptools,
}:
buildPythonPackage rec {
pname = "pyelectra";
version = "1.2.4";
pyproject = true;
src = fetchFromGitHub {
owner = "jafar-atili";
repo = "pyelectra";
rev = "refs/tags/${version}";
hash = "sha256-3g+6AXbHMStk77k+1Qh5kgDswUZ8I627YiA/PguUGBg=";
};
build-system = [ setuptools ];
dependencies = [ aiohttp ];
pythonImportsCheck = [ "electrasmart" ];
# upstream has no tests
doCheck = false;
meta = {
changelog = "https://github.com/jafar-atili/pyElectra/releases/tag/${version}";
description = "Electra Smart Python Integration";
homepage = "https://github.com/jafar-atili/pyelectra";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}