nixpkgs/pkgs/development/python-modules/agate/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

74 lines
1.3 KiB
Nix

{ lib
, babel
, buildPythonPackage
, cssselect
, fetchFromGitHub
, glibcLocales
, isodate
, leather
, lxml
, nose
, parsedatetime
, pyicu
, python-slugify
, pytimeparse
, pythonOlder
, pytz
, six
}:
buildPythonPackage rec {
pname = "agate";
version = "1.6.3";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "wireservice";
repo = pname;
rev = version;
sha256 = "sha256-tuUoLvztCYHIPJTBgw1eByM0zfaHDyc+h7SWsxutKos=";
};
propagatedBuildInputs = [
babel
isodate
leather
parsedatetime
python-slugify
pytimeparse
six
];
nativeCheckInputs = [
cssselect
glibcLocales
lxml
nose
pyicu
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
'';
pythonImportsCheck = [
"agate"
];
meta = with lib; {
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 ];
};
}