mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-26 07:50:31 +00:00
Merge master into staging-next
This commit is contained in:
52
pkgs/development/python-modules/corsair-scan/default.nix
Normal file
52
pkgs/development/python-modules/corsair-scan/default.nix
Normal file
@@ -0,0 +1,52 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, click
|
||||
, fetchFromGitHub
|
||||
, mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
, tldextract
|
||||
, urllib3
|
||||
, validators
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "corsair-scan";
|
||||
version = "0.2.0";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Santandersecurityresearch";
|
||||
repo = "corsair_scan";
|
||||
rev = "v${version}";
|
||||
sha256 = "09jsv5bag7mjy0rxsxjzmg73rjl7qknzr0d7a7himd7v6a4ikpmk";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
validators
|
||||
requests
|
||||
urllib3
|
||||
tldextract
|
||||
click
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "'pytest-runner'," ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "corsair_scan" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module to check for Cross-Origin Resource Sharing (CORS) misconfigurations";
|
||||
homepage = "https://github.com/Santandersecurityresearch/corsair_scan";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, psutil
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "powerline-mem-segment";
|
||||
version = "2.4.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0507zw7g449zk7dcq56adcdp71inbqfdmp6y5yk4x4j7kkp6pii9";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ psutil ];
|
||||
|
||||
pythonImportsCheck = [ "powerlinemem" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Segment for Powerline showing the current memory usage in percent or absolute values.";
|
||||
homepage = "https://github.com/mKaloer/powerline_mem_segment";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ thomasjm ];
|
||||
};
|
||||
}
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "solo-python";
|
||||
version = "0.0.27";
|
||||
version = "0.0.30";
|
||||
format = "flit";
|
||||
disabled = pythonOlder "3.6"; # only python>=3.6 is supported
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
owner = "solokeys";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-OCiKa6mnqJGoNCC4KqI+hMw22tzhdN63x9/KujNJqcE=";
|
||||
sha256 = "1i9kybp08qfcdx6m4wl7ij40y1v17mvvhcdg7zglwfakblf69w41";
|
||||
};
|
||||
|
||||
# replaced pinned fido, with unrestricted fido version
|
||||
@@ -60,8 +60,5 @@
|
||||
homepage = "https://github.com/solokeys/solo-python";
|
||||
maintainers = with maintainers; [ wucke13 ];
|
||||
license = with licenses; [ asl20 mit ];
|
||||
# solo-python v0.0.27 does not support fido2 >= v0.9
|
||||
# https://github.com/solokeys/solo-python/issues/110
|
||||
broken = true;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user