Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pytimeparse2 / default.nix
blobb35202e6fd4b1044a307c3ec02149f23d033b37e
1 { lib, fetchFromGitHub, buildPythonPackage, dateutils }:
3 buildPythonPackage rec {
4   pname = "pytimeparse2";
5   version = "1.7.1";
6   format = "setuptools";
8   src = fetchFromGitHub {
9     owner = "onegreyonewhite";
10     repo = pname;
11     rev = "refs/tags/${version}";
12     hash = "sha256-zWRbSohTvbVd3GcRRoxH/UReVGYHC0YmbNgbt8N0X48=";
13   };
15   propagatedBuildInputs = [ dateutils ];
17   # custom checks, see
18   # https://github.com/onegreyonewhite/pytimeparse2/blob/e00df7506b6925f2c6a5783e89e9f239d128271a/tox.ini#L36C20-L36C78
19   checkPhase = ''
20     runHook preCheck
21     python tests.py -vv --failfast
22     runHook postCheck
23   '';
25   pythonImportsCheck = [ "pytimeparse2" ];
27   meta = with lib; {
28     description = "A pytimeparse based project with the aim of optimizing functionality and providing stable support";
29     homepage = "https://github.com/onegreyonewhite/pytimeparse2";
30     license = licenses.mit;
31     maintainers = with maintainers; [ gador ];
32   };