nixpkgs/pkgs/development/python-modules/habitipy/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

49 lines
842 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, plumbum
, requests
, setuptools
, hypothesis
, nose
, responses
}:
buildPythonPackage rec {
pname = "habitipy";
version = "0.3.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "ASMfreaK";
repo = "habitipy";
rev = "v${version}";
sha256 = "1vf485z5m4h61p64zr3sgkcil2s3brq7dja4n7m49d1fvzcirylv";
};
propagatedBuildInputs = [
plumbum
requests
setuptools
];
nativeCheckInputs = [
hypothesis
nose
responses
];
checkPhase = ''
HOME=$TMPDIR nosetests
'';
pythonImportsCheck = [ "habitipy" ];
meta = with lib; {
description = "Tools and library for Habitica restful API";
homepage = "https://github.com/ASMfreaK/habitipy";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}