python312Packages.fnllm: 0.0.11 -> 0.0.12 (#364582)
[NixPkgs.git] / pkgs / development / python-modules / proxy-db / default.nix
blob7ccfe3bb890a574230a4d3dc436ecda8dd33e9a5
2   lib,
3   beautifulsoup4,
4   buildPythonPackage,
5   click,
6   fetchFromGitHub,
7   pytestCheckHook,
8   pythonOlder,
9   requests,
10   requests-mock,
11   six,
12   sqlalchemy,
15 buildPythonPackage rec {
16   pname = "proxy-db";
17   version = "0.3.1";
18   format = "setuptools";
20   disabled = pythonOlder "3.7";
22   src = fetchFromGitHub {
23     owner = "Nekmo";
24     repo = "proxy-db";
25     rev = "refs/tags/v${version}";
26     hash = "sha256-NdbvK2sJKKoWNYsuBaCMWtKEvuMhgyKXcKZXQgTC4bY=";
27   };
29   propagatedBuildInputs = [
30     beautifulsoup4
31     click
32     requests
33     six
34     sqlalchemy
35   ];
37   nativeCheckInputs = [
38     pytestCheckHook
39     requests-mock
40   ];
42   preCheck = ''
43     export HOME=$(mktemp -d)
44   '';
46   pythonImportsCheck = [ "proxy_db" ];
48   meta = with lib; {
49     description = "Module to manage proxies in a local database";
50     mainProgram = "proxy-db";
51     homepage = "https://github.com/Nekmo/proxy-db/";
52     changelog = "https://github.com/Nekmo/proxy-db/blob/v${version}/HISTORY.rst";
53     license = licenses.asl20;
54     maintainers = with maintainers; [ fab ];
55   };