2017-09-05 10:16:41 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2017-12-30 11:28:33 +00:00
|
|
|
, itsdangerous, hypothesis
|
2017-09-05 10:16:41 +01:00
|
|
|
, pytest, requests, glibcLocales }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "Werkzeug";
|
2018-01-01 15:01:01 +00:00
|
|
|
version = "0.14.1";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-01-01 15:01:01 +00:00
|
|
|
sha256 = "c3fd7a7d41976d9f44db327260e263132466836cef6f91512889ed60ad26557c";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ itsdangerous ];
|
2017-12-30 11:28:33 +00:00
|
|
|
checkInputs = [ pytest requests glibcLocales hypothesis ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2018-01-16 20:32:35 +00:00
|
|
|
LC_ALL="en_US.UTF-8" py.test ${stdenv.lib.optionalString stdenv.isDarwin "-k 'not test_get_machine_id'"}
|
2017-12-30 11:28:33 +00:00
|
|
|
'';
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://werkzeug.pocoo.org/;
|
|
|
|
description = "A WSGI utility library for Python";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|