nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 requests,
7 greenlet,
8 pytestCheckHook,
9 pytest-cov-stub,
10 pytest-httpbin,
11 werkzeug,
12}:
13
14buildPythonPackage rec {
15 pname = "requests-futures";
16 version = "1.0.2";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "ross";
21 repo = "requests-futures";
22 tag = "v${version}";
23 hash = "sha256-eUu+M9rPyvc7OaOCCnUvGliK4gicYh6hfB0Jo19Yy1g=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [ requests ];
29
30 nativeCheckInputs = [
31 greenlet
32 pytestCheckHook
33 pytest-cov-stub
34 pytest-httpbin
35 werkzeug
36 ];
37
38 pythonImportsCheck = [ "requests_futures" ];
39
40 meta = {
41 description = "Asynchronous Python HTTP Requests for Humans using Futures";
42 homepage = "https://github.com/ross/requests-futures";
43 changelog = "https://github.com/ross/requests-futures/blob/${src.tag}/CHANGELOG.md";
44 license = with lib.licenses; [ asl20 ];
45 maintainers = with lib.maintainers; [ applePrincess ];
46 };
47}