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

27 lines
676 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi
2017-12-30 11:28:33 +00:00
, itsdangerous, hypothesis
, pytest, requests }:
buildPythonPackage rec {
pname = "Werkzeug";
2019-10-24 06:47:51 +00:00
version = "0.16.0";
src = fetchPypi {
inherit pname version;
2019-10-24 06:47:51 +00:00
sha256 = "7280924747b5733b246fe23972186c6b348f9ae29724135a6dfc1e53cea433e7";
};
propagatedBuildInputs = [ itsdangerous ];
checkInputs = [ pytest requests hypothesis ];
2017-12-30 11:28:33 +00:00
checkPhase = ''
pytest ${stdenv.lib.optionalString stdenv.isDarwin "-k 'not test_get_machine_id'"}
2017-12-30 11:28:33 +00:00
'';
meta = with stdenv.lib; {
homepage = "https://palletsprojects.com/p/werkzeug/";
description = "A WSGI utility library for Python";
license = licenses.bsd3;
};
}