Files
nixpkgs/pkgs/development/python-modules/habitipy/default.nix
2026-11-12 11:13:51 +01:00

64 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hypothesis,
pkg-resources-backport,
plumbum,
pytestCheckHook,
requests,
responses,
setuptools,
}:
buildPythonPackage rec {
pname = "habitipy";
version = "0.3.3";
pyproject = true;
src = fetchFromGitHub {
owner = "ASMfreaK";
repo = "habitipy";
tag = "v${version}";
hash = "sha256-AEeTCrxLXkokRRnNUfW4y23Qdh8ek1F88GmCPLGb84A=";
};
build-system = [
pkg-resources-backport
setuptools
];
dependencies = [
plumbum
requests
setuptools
];
nativeCheckInputs = [
hypothesis
pytestCheckHook
responses
];
preCheck = ''
export HOME=$TMPDIR
'';
disabledTests = [
# network access
"test_content_cache"
# hypothesis.errors.InvalidArgument: tests/test_cli.py::test_data is a function that returns a Hypothesis strategy, but pytest has collected it as a test function.
"test_data"
];
pythonImportsCheck = [ "habitipy" ];
meta = {
description = "Tools and library for Habitica restful API";
mainProgram = "habitipy";
homepage = "https://github.com/ASMfreaK/habitipy";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}