1{ stdenv, buildPythonPackage, fetchPypi, six, setuptools_scm, pytest }:
2buildPythonPackage rec {
3 pname = "python-dateutil";
4 version = "2.8.0";
5
6 src = fetchPypi {
7 inherit pname version;
8 sha256 = "c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e";
9 };
10
11 checkInputs = [ pytest ];
12 propagatedBuildInputs = [ six setuptools_scm ];
13
14 checkPhase = ''
15 py.test dateutil/test
16 '';
17
18 # Requires fixing
19 doCheck = false;
20
21 meta = with stdenv.lib; {
22 description = "Powerful extensions to the standard datetime module";
23 homepage = https://pypi.python.org/pypi/python-dateutil;
24 license = "BSD-style";
25 };
26}