nixpkgs/pkgs/development/python-modules/parsedatetime/default.nix

30 lines
606 B
Nix
Raw Normal View History

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