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

50 lines
991 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
aiocache,
aiohttp,
aiounittest,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mypermobil";
version = "0.1.8";
pyproject = true;
src = fetchFromGitHub {
owner = "Permobil-Software";
repo = "mypermobil";
rev = "refs/tags/v${version}";
hash = "sha256-linnaRyA45EzqeSeNmvIE5gXkHA2F504U1++QBeRa90=";
};
build-system = [ setuptools ];
dependencies = [
aiocache
aiohttp
];
pythonImportsCheck = [ "mypermobil" ];
nativeCheckInputs = [
aiounittest
pytestCheckHook
];
disabledTests = [
# requires networking
"test_region"
];
meta = {
changelog = "https://github.com/Permobil-Software/mypermobil/releases/tag/v${version}";
description = "Python wrapper for the MyPermobil API";
homepage = "https://github.com/Permobil-Software/mypermobil";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}