commit
56813953d0
@ -0,0 +1,62 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, distro |
||||
, fetchFromGitHub |
||||
, jdk |
||||
, numpy |
||||
, pandas |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
, setuptools-scm |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "tabula-py"; |
||||
version = "2.4.0"; |
||||
format = "setuptools"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "chezou"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
hash = "sha256-cVhtFfzDQvVnDaXOU3dx/m3LENMMG3E+RnFVFCZ0AAc="; |
||||
}; |
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version; |
||||
|
||||
nativeBuildInputs = [ |
||||
setuptools-scm |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
distro |
||||
numpy |
||||
pandas |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
jdk |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"tabula" |
||||
]; |
||||
|
||||
disabledTests = [ |
||||
# Tests require network access |
||||
"test_convert_remote_file" |
||||
"test_read_pdf_with_remote_template" |
||||
"test_read_remote_pdf" |
||||
"test_read_remote_pdf_with_custom_user_agent" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Module to extract table from PDF into pandas DataFrame"; |
||||
homepage = "https://github.com/chezou/tabula-py"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,25 @@ |
||||
{ lib |
||||
, buildGoModule |
||||
, fetchFromGitHub |
||||
}: |
||||
|
||||
buildGoModule rec { |
||||
pname = "jsubfinder"; |
||||
version = "unstable-2022-05-31"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "ThreatUnkown"; |
||||
repo = pname; |
||||
rev = "e21de1ebc174bb69485f1c224e8063c77d87e4ad"; |
||||
hash = "sha256-QjRYJyk0uFGa6FCCYK9SIJhoyam4ALsQJ26DsmbNk8s="; |
||||
}; |
||||
|
||||
vendorSha256 = "sha256-pr4KkszyzEl+yLJousx29tr7UZDJf0arEfXBb7eumww="; |
||||
|
||||
meta = with lib; { |
||||
description = "Tool to search for in Javascript hidden subdomains and secrets"; |
||||
homepage = "https://github.com/ThreatUnkown/jsubfinder"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,40 @@ |
||||
{ lib |
||||
, buildGoModule |
||||
, fetchFromGitHub |
||||
, osv-detector |
||||
, testers |
||||
}: |
||||
|
||||
buildGoModule rec { |
||||
pname = "osv-detector"; |
||||
version = "0.6.0"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "G-Rath"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
hash = "sha256-Y/9q4ZJ4vxDitqrM4hGe49iqLYk4ebhTs4jrD7P8fdw="; |
||||
}; |
||||
|
||||
vendorSha256 = "sha256-KAxpDQIRrLZIOvfW8wf0CV4Fj6l3W6nNZNCH3ZE6yJc="; |
||||
|
||||
ldflags = [ |
||||
"-w" |
||||
"-s" |
||||
"-X main.version=${version}" |
||||
]; |
||||
|
||||
passthru.tests.version = testers.testVersion { |
||||
package = osv-detector; |
||||
command = "osv-detector -version"; |
||||
version = "osv-detector ${version} (unknown, commit none)"; |
||||
}; |
||||
|
||||
meta = with lib; { |
||||
description = "Auditing tool for detecting vulnerabilities"; |
||||
homepage = "https://github.com/G-Rath/osv-detector"; |
||||
changelog = "https://github.com/G-Rath/osv-detector/releases/tag/v${version}"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue