Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 55 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, isPy3k 4, fetchFromGitHub 5, dateutil 6, pytz 7, regex 8, tzlocal 9, hijri-converter 10, convertdate 11, parameterized 12, pytestCheckHook 13, GitPython 14, ruamel_yaml 15}: 16 17buildPythonPackage rec { 18 pname = "dateparser"; 19 version = "1.0.0"; 20 21 disabled = !isPy3k; 22 23 src = fetchFromGitHub { 24 owner = "scrapinghub"; 25 repo = "dateparser"; 26 rev = "v${version}"; 27 sha256 = "0i6ci14lqfsqrmaif57dyilrjbxzmbl98hps1b565gkiy1xqmjhl"; 28 }; 29 30 propagatedBuildInputs = [ 31 # install_requires 32 dateutil pytz regex tzlocal 33 # extra_requires 34 hijri-converter convertdate 35 ]; 36 37 checkInputs = [ 38 parameterized 39 pytestCheckHook 40 GitPython 41 ruamel_yaml 42 ]; 43 44 # Upstream only runs the tests in tests/ in CI, others use git clone 45 pytestFlagsArray = [ "tests" ]; 46 47 pythonImportsCheck = [ "dateparser" ]; 48 49 meta = with lib; { 50 description = "Date parsing library designed to parse dates from HTML pages"; 51 homepage = "https://github.com/scrapinghub/dateparser"; 52 license = licenses.bsd3; 53 maintainers = with maintainers; [ dotlambda ]; 54 }; 55}