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

46 lines
976 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
aiohttp,
pytest-aiohttp,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyemoncms";
version = "0.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "Open-Building-Management";
repo = "pyemoncms";
rev = "refs/tags/v${version}";
hash = "sha256-IBrYys0i9pTAw9ul8bqni0H3KNSvKQYNU6D4OSfR6ZE=";
};
build-system = [ setuptools ];
dependencies = [ aiohttp ];
pythonImportsCheck = [ "pyemoncms" ];
nativeCheckInputs = [
pytest-aiohttp
pytestCheckHook
];
disabledTests = [
# requires networking
"test_timeout"
];
meta = {
changelog = "https://github.com/Open-Building-Management/pyemoncms/releases/tag/v${version}";
description = "Python library for emoncms API";
homepage = "https://github.com/Open-Building-Management/pyemoncms";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}