depot/third_party/nixpkgs/pkgs/development/python-modules/wakeonlan/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

31 lines
746 B
Nix

{ stdenv, fetchPypi, buildPythonPackage, setuptools_scm, pytest, mock }:
buildPythonPackage rec {
pname = "wakeonlan";
version = "1.1.6";
src = fetchPypi {
inherit pname version;
sha256 = "5e6013a17004809e676c150689abd94bcc0f12a37ad3fbce1f6270968f95ffa9";
};
postPatch = ''
substituteInPlace setup.py \
--replace "setuptools-scm ~= 1.15.7" "setuptools-scm"
'';
checkInputs = [ pytest mock ];
nativeBuildInputs = [ setuptools_scm ];
checkPhase = ''
py.test
'';
meta = with stdenv.lib; {
description = "A small python module for wake on lan";
homepage = "https://github.com/remcohaszing/pywakeonlan";
license = licenses.wtfpl;
maintainers = with maintainers; [ peterhoeg ];
};
}