nixpkgs/pkgs/development/python-modules/werkzeug/default.nix

27 lines
710 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi
2017-12-30 11:28:33 +00:00
, itsdangerous, hypothesis
, pytest, requests, glibcLocales }:
buildPythonPackage rec {
pname = "Werkzeug";
2018-01-01 15:01:01 +00:00
version = "0.14.1";
src = fetchPypi {
inherit pname version;
2018-01-01 15:01:01 +00:00
sha256 = "c3fd7a7d41976d9f44db327260e263132466836cef6f91512889ed60ad26557c";
};
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
'';
meta = with stdenv.lib; {
homepage = http://werkzeug.pocoo.org/;
description = "A WSGI utility library for Python";
license = licenses.bsd3;
};
}