Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / proxy-db / default.nix
bloba4a6fef11188e6c7ab8afaad397cd3e78712c2b0
1 { lib
2 , beautifulsoup4
3 , buildPythonPackage
4 , click
5 , fetchFromGitHub
6 , pytestCheckHook
7 , pythonOlder
8 , requests
9 , requests-mock
10 , six
11 , sqlalchemy
14 buildPythonPackage rec {
15   pname = "proxy-db";
16   version = "0.3.1";
17   format = "setuptools";
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "Nekmo";
23     repo = "proxy-db";
24     rev = "refs/tags/v${version}";
25     hash = "sha256-NdbvK2sJKKoWNYsuBaCMWtKEvuMhgyKXcKZXQgTC4bY=";
26   };
28   propagatedBuildInputs = [
29     beautifulsoup4
30     click
31     requests
32     six
33     sqlalchemy
34   ];
36   nativeCheckInputs = [
37     pytestCheckHook
38     requests-mock
39   ];
41   preCheck = ''
42     export HOME=$(mktemp -d)
43   '';
45   pythonImportsCheck = [
46     "proxy_db"
47   ];
49   meta = with lib; {
50     description = "Module to manage proxies in a local database";
51     mainProgram = "proxy-db";
52     homepage = "https://github.com/Nekmo/proxy-db/";
53     changelog = "https://github.com/Nekmo/proxy-db/blob/v${version}/HISTORY.rst";
54     license = licenses.asl20;
55     maintainers = with maintainers; [ fab ];
56   };