mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-13 21:56:29 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
53 lines
1,002 B
Nix
53 lines
1,002 B
Nix
{
|
|
lib,
|
|
beautifulsoup4,
|
|
buildPythonPackage,
|
|
click,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
requests,
|
|
requests-mock,
|
|
six,
|
|
sqlalchemy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "proxy-db";
|
|
version = "0.3.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Nekmo";
|
|
repo = "proxy-db";
|
|
tag = "v${version}";
|
|
hash = "sha256-NdbvK2sJKKoWNYsuBaCMWtKEvuMhgyKXcKZXQgTC4bY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
beautifulsoup4
|
|
click
|
|
requests
|
|
six
|
|
sqlalchemy
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
requests-mock
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
pythonImportsCheck = [ "proxy_db" ];
|
|
|
|
meta = {
|
|
description = "Module to manage proxies in a local database";
|
|
mainProgram = "proxy-db";
|
|
homepage = "https://github.com/Nekmo/proxy-db/";
|
|
changelog = "https://github.com/Nekmo/proxy-db/blob/v${version}/HISTORY.rst";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|