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