depot/third_party/nixpkgs/pkgs/development/python-modules/parsedatetime/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

29 lines
604 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, pytest
, pytestrunner
, future
}:
buildPythonPackage rec {
pname = "parsedatetime";
version = "2.6";
disabled = isPy27; # no longer compatible with icu package
src = fetchPypi {
inherit pname version;
sha256 = "4cb368fbb18a0b7231f4d76119165451c8d2e35951455dfee97c62a87b04d455";
};
buildInputs = [ pytest pytestrunner ];
propagatedBuildInputs = [ future ];
meta = with lib; {
description = "Parse human-readable date/time text";
homepage = "https://github.com/bear/parsedatetime";
license = licenses.asl20;
};
}