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

29 lines
708 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi
2017-12-30 11:28:33 +00:00
, itsdangerous, hypothesis
2020-02-06 15:03:25 +00:00
, pytest, requests
, pytest-timeout
}:
buildPythonPackage rec {
pname = "Werkzeug";
2020-06-06 07:47:37 +01:00
version = "1.0.1";
src = fetchPypi {
inherit pname version;
2020-06-06 07:47:37 +01:00
sha256 = "6c80b1e5ad3665290ea39320b91e1be1e0d5f60652b964a3070216de83d2e47c";
};
propagatedBuildInputs = [ itsdangerous ];
2020-02-06 15:03:25 +00:00
checkInputs = [ pytest requests hypothesis pytest-timeout ];
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;
};
}