nixpkgs/pkgs/development/python-modules/pycares/default.nix

36 lines
609 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
2019-03-19 15:11:46 +00:00
, python
, c-ares
, cffi
}:
buildPythonPackage rec {
pname = "pycares";
2019-12-19 19:31:18 +00:00
version = "3.1.0";
src = fetchPypi {
inherit pname version;
2019-12-19 19:31:18 +00:00
sha256 = "663c000625725d3a63466a674df4ee7f62bf8ca1ae8a0b87a6411eb811e0e794";
};
2019-03-19 15:11:46 +00:00
buildInputs = [ c-ares ];
2019-03-19 15:11:46 +00:00
propagatedBuildInputs = [ cffi ];
checkPhase = ''
${python.interpreter} tests/tests.py
'';
# requires network access
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/saghul/pycares;
description = "Interface for c-ares";
license = licenses.mit;
};
}