Files
nixpkgs/pkgs/development/python-modules/habitipy/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

60 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
plumbum,
requests,
setuptools,
hypothesis,
pytestCheckHook,
responses,
}:
buildPythonPackage rec {
pname = "habitipy";
version = "0.3.3";
pyproject = true;
src = fetchFromGitHub {
owner = "ASMfreaK";
repo = "habitipy";
tag = "v${version}";
hash = "sha256-AEeTCrxLXkokRRnNUfW4y23Qdh8ek1F88GmCPLGb84A=";
};
build-system = [ 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 ];
};
}