python310Packages.agate: update disabled

- add changelog to meta
- remove postPatch section
This commit is contained in:
Fabian Affolter 2023-04-30 21:07:58 +02:00
parent 41dc5202d0
commit b1f267d40b

View file

@ -14,7 +14,6 @@
, pytimeparse
, pythonOlder
, pytz
, six
}:
buildPythonPackage rec {
@ -22,12 +21,12 @@ buildPythonPackage rec {
version = "1.7.1";
format = "setuptools";
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "wireservice";
repo = pname;
rev = version;
rev = "refs/tags/${version}";
hash = "sha256-7Ew9bgeheymCL8xXSW5li0LdFvGYb/7gPxmC4w6tHvM=";
};
@ -38,7 +37,6 @@ buildPythonPackage rec {
parsedatetime
python-slugify
pytimeparse
six
];
nativeCheckInputs = [
@ -50,12 +48,6 @@ buildPythonPackage rec {
pytz
];
postPatch = ''
# No Python 2 support, thus constraint is not needed
substituteInPlace setup.py \
--replace "'parsedatetime>=2.1,!=2.5,!=2.6'," "'parsedatetime>=2.1',"
'';
checkPhase = ''
LC_ALL="en_US.UTF-8" nosetests tests
'';
@ -67,6 +59,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python data analysis library that is optimized for humans instead of machines";
homepage = "https://github.com/wireservice/agate";
changelog = "https://github.com/wireservice/agate/blob/${version}/CHANGELOG.rst";
license = with licenses; [ mit ];
maintainers = with maintainers; [ vrthra ];
};