mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 06:23:36 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
28 lines
670 B
Nix
28 lines
670 B
Nix
{ aiohttp, buildPythonPackage, fetchPypi, isPy3k, lib, python, requests }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "agent-py";
|
|
version = "0.0.23";
|
|
format = "setuptools";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1hx88m8b8kfb2gm6hii5ldjv7hlvqf99cz0w2vj0d0grrxcbn5cz";
|
|
};
|
|
|
|
propagatedBuildInputs = [ requests aiohttp ];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} tests/test_agent.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A python wrapper around the Agent REST API.";
|
|
homepage = "https://github.com/ispysoftware/agent-py";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ jamiemagee ];
|
|
};
|
|
}
|