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-03-19 15:11:46 +00:00
version = "3.0.0";
src = fetchPypi {
inherit pname version;
2019-03-19 15:11:46 +00:00
sha256 = "b253f5dcaa0ac7076b79388a3ac80dd8f3bd979108f813baade40d3a9b8bf0bd";
};
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;
};
}