mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-13 07:57:32 +03:00
02dab4ab5c
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
42 lines
942 B
Nix
42 lines
942 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, future
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "parsedatetime";
|
|
version = "2.6";
|
|
format = "setuptools";
|
|
disabled = isPy27; # no longer compatible with icu package
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "4cb368fbb18a0b7231f4d76119165451c8d2e35951455dfee97c62a87b04d455";
|
|
};
|
|
|
|
propagatedBuildInputs = [ future ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pytestFlagsArray = [ "tests/Test*.py" ];
|
|
|
|
disabledTests = [
|
|
# https://github.com/bear/parsedatetime/issues/263
|
|
"testDate3ConfusedHourAndYear"
|
|
# https://github.com/bear/parsedatetime/issues/215
|
|
"testFloat"
|
|
];
|
|
|
|
pythonImportsCheck = [ "parsedatetime" ];
|
|
|
|
meta = with lib; {
|
|
description = "Parse human-readable date/time text";
|
|
homepage = "https://github.com/bear/parsedatetime";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|