1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/secure/default.nix
Jonathan Ringer 69ebdd78be pythonPackages.secure: disable for python2, not supported
Processing ./secure-0.2.1-py2-none-any.whl
ERROR: Package 'secure' requires a different Python: 2.7.18 not in '>=3'
2020-05-03 11:39:49 -07:00

32 lines
728 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, isPy27
, maya
, requests
}:
buildPythonPackage rec {
version = "0.2.1";
pname = "secure";
disabled = isPy27;
src = fetchFromGitHub {
owner = "typeerror";
repo = "secure.py";
rev = "v${version}";
sha256 = "1nbxwi0zccrha6js14ibd596kdi1wpqr7jgs442mqclw4b3f77q5";
};
propagatedBuildInputs = [ maya requests ];
# no tests in release
doCheck = false;
pythonImportsCheck = [ "secure" ];
meta = with lib; {
description = "Adds optional security headers and cookie attributes for Python web frameworks";
homepage = "https://github.com/TypeError/secure.py";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};
}