1{ stdenv, buildPythonPackage, fetchPypi, six, setuptools_scm, pytest }:
2buildPythonPackage rec {
3 pname = "python-dateutil";
4 version = "2.8.1";
5
6 src = fetchPypi {
7 inherit pname version;
8 sha256 = "73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c";
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}