Update aider (#375634)
[NixPkgs.git] / pkgs / development / python-modules / parsedatetime / default.nix
blobb187ba40a2780c4c1b8329143682a6caea24239a
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   isPy27,
6   future,
7   pytestCheckHook,
8 }:
10 buildPythonPackage rec {
11   pname = "parsedatetime";
12   version = "2.6";
13   format = "setuptools";
14   disabled = isPy27; # no longer compatible with icu package
16   src = fetchPypi {
17     inherit pname version;
18     sha256 = "4cb368fbb18a0b7231f4d76119165451c8d2e35951455dfee97c62a87b04d455";
19   };
21   propagatedBuildInputs = [ future ];
23   nativeCheckInputs = [ pytestCheckHook ];
25   pytestFlagsArray = [ "tests/Test*.py" ];
27   disabledTests = [
28     # https://github.com/bear/parsedatetime/issues/263
29     "testDate3ConfusedHourAndYear"
30     # https://github.com/bear/parsedatetime/issues/215
31     "testFloat"
32   ];
34   pythonImportsCheck = [ "parsedatetime" ];
36   meta = with lib; {
37     description = "Parse human-readable date/time text";
38     homepage = "https://github.com/bear/parsedatetime";
39     license = licenses.asl20;
40     maintainers = [ ];
41   };