wtfis: remove patch
This commit is contained in:
parent
6864f2c2e7
commit
f18465480f
2 changed files with 16 additions and 38 deletions
|
@ -1,29 +0,0 @@
|
||||||
diff -Naur source-old/pyproject.toml source-new/pyproject.toml
|
|
||||||
--- source-old/pyproject.toml 1980-01-02 00:00:00.000000000 -0300
|
|
||||||
+++ source-new/pyproject.toml 2023-02-04 10:09:48.087418202 -0300
|
|
||||||
@@ -29,11 +29,11 @@
|
|
||||||
"Topic :: Security",
|
|
||||||
]
|
|
||||||
dependencies = [
|
|
||||||
- "pydantic~=1.10.2",
|
|
||||||
- "python-dotenv~=0.21.0",
|
|
||||||
- "requests~=2.28.1",
|
|
||||||
- "rich~=12.6.0",
|
|
||||||
- "shodan~=1.28.0",
|
|
||||||
+ "pydantic",
|
|
||||||
+ "python-dotenv",
|
|
||||||
+ "requests",
|
|
||||||
+ "rich",
|
|
||||||
+ "shodan",
|
|
||||||
]
|
|
||||||
dynamic = ["version"]
|
|
||||||
|
|
||||||
@@ -63,7 +63,7 @@
|
|
||||||
"mypy",
|
|
||||||
"pytest",
|
|
||||||
"pytest-cov",
|
|
||||||
- "types-requests~=2.28.1",
|
|
||||||
+ "types-requests",
|
|
||||||
]
|
|
||||||
[tool.hatch.envs.default.scripts]
|
|
||||||
typecheck = "mypy -p {args:wtfis}"
|
|
|
@ -6,29 +6,36 @@
|
||||||
let
|
let
|
||||||
pname = "wtfis";
|
pname = "wtfis";
|
||||||
version = "0.6.1";
|
version = "0.6.1";
|
||||||
in python3.pkgs.buildPythonApplication {
|
|
||||||
inherit pname version;
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pirxthepilot";
|
owner = "pirxthepilot";
|
||||||
repo = "wtfis";
|
repo = "wtfis";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-bHgv5+HoM1hFhpkqml+HxqiMDvKbMqsTH+zYtDrV7Ko=";
|
hash = "sha256-bHgv5+HoM1hFhpkqml+HxqiMDvKbMqsTH+zYtDrV7Ko=";
|
||||||
};
|
};
|
||||||
|
in python3.pkgs.buildPythonApplication {
|
||||||
patches = [
|
inherit pname version src;
|
||||||
# TODO: get rid of that newbie patch
|
|
||||||
./000-pyproject-remove-versions.diff
|
|
||||||
];
|
|
||||||
|
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
python3.pkgs.pythonRelaxDepsHook
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
python3.pkgs.hatchling
|
python3.pkgs.hatchling
|
||||||
python3.pkgs.pydantic
|
python3.pkgs.pydantic
|
||||||
|
python3.pkgs.python-dotenv
|
||||||
python3.pkgs.rich
|
python3.pkgs.rich
|
||||||
python3.pkgs.shodan
|
python3.pkgs.shodan
|
||||||
python3.pkgs.python-dotenv
|
];
|
||||||
|
|
||||||
|
pythonRelaxDeps = [
|
||||||
|
"pydantic"
|
||||||
|
"python-dotenv"
|
||||||
|
"requests"
|
||||||
|
"rich"
|
||||||
|
"shodan"
|
||||||
|
"types-requests"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in a new issue