mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
56aec06b4c
faaca88405
...v0.3.3
60 lines
1.2 KiB
Nix
60 lines
1.2 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";
|
|
rev = "refs/tags/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 = with lib; {
|
|
description = "Tools and library for Habitica restful API";
|
|
mainProgram = "habitipy";
|
|
homepage = "https://github.com/ASMfreaK/habitipy";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|