3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/agate/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

74 lines
1.2 KiB
Nix
Raw Normal View History

2021-11-09 08:13:46 +00:00
{ lib
, Babel
, buildPythonPackage
, cssselect
, fetchFromGitHub
, glibcLocales
, isodate
, leather
, lxml
, nose
, parsedatetime
, PyICU
, python-slugify
, pytimeparse
, pythonOlder
, pytz
, six
}:
2017-05-03 05:08:10 +01:00
buildPythonPackage rec {
pname = "agate";
2021-11-09 08:13:46 +00:00
version = "1.6.3";
format = "setuptools";
disabled = pythonOlder "3.6";
2017-05-03 05:08:10 +01:00
src = fetchFromGitHub {
owner = "wireservice";
repo = pname;
rev = version;
2021-11-09 08:13:46 +00:00
sha256 = "sha256-tuUoLvztCYHIPJTBgw1eByM0zfaHDyc+h7SWsxutKos=";
};
2017-05-03 05:08:10 +01:00
propagatedBuildInputs = [
2021-11-09 08:13:46 +00:00
Babel
isodate
leather
parsedatetime
python-slugify
pytimeparse
six
];
checkInputs = [
cssselect
glibcLocales
lxml
nose
PyICU
pytz
];
2017-05-03 05:08:10 +01:00
2021-11-09 08:13:46 +00:00
postPatch = ''
# No Python 2 support, thus constraint is not needed
substituteInPlace setup.py \
--replace "'parsedatetime>=2.1,!=2.5,!=2.6'," "'parsedatetime>=2.1',"
'';
2017-05-03 05:08:10 +01:00
checkPhase = ''
LC_ALL="en_US.UTF-8" nosetests tests
'';
2021-11-09 08:13:46 +00:00
pythonImportsCheck = [
"agate"
];
meta = with lib; {
2021-11-09 08:13:46 +00:00
description = "Python data analysis library that is optimized for humans instead of machines";
homepage = "https://github.com/wireservice/agate";
license = with licenses; [ mit ];
maintainers = with maintainers; [ vrthra ];
};
2017-05-03 05:08:10 +01:00
}