mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
altdns: refactor
This commit is contained in:
parent
998dac69c6
commit
0358cfe0b5
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
python3.pkgs.buildPythonApplication {
|
python3.pkgs.buildPythonApplication {
|
||||||
pname = "altdns";
|
pname = "altdns";
|
||||||
version = "unstable-2021-09-09";
|
version = "1.0.2-unstable-2021-09-09";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
@ -15,23 +15,23 @@ python3.pkgs.buildPythonApplication {
|
|||||||
hash = "sha256-ElY6AZ7IBnOh7sRWNSQNmq7AYGlnjvYRn8/U+29BwWA=";
|
hash = "sha256-ElY6AZ7IBnOh7sRWNSQNmq7AYGlnjvYRn8/U+29BwWA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with python3.pkgs; [
|
prePatch = ''
|
||||||
|
substituteInPlace requirements.txt \
|
||||||
|
--replace-fail "argparse" ""
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace-fail "argparse" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
build-system = with python3.pkgs; [
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
dependencies = with python3.pkgs; [
|
||||||
dnspython
|
dnspython
|
||||||
termcolor
|
termcolor
|
||||||
tldextract
|
tldextract
|
||||||
];
|
];
|
||||||
|
|
||||||
prePatch = ''
|
|
||||||
substituteInPlace requirements.txt \
|
|
||||||
--replace "argparse" ""
|
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace "argparse" ""
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
cp $src/words.txt $out/
|
cp $src/words.txt $out/
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user