python.pkgs.wakeonlan: fix build
This commit is contained in:
parent
1e24bcf9dc
commit
2bf437f0c8
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchPypi, buildPythonPackage }:
|
{ stdenv, fetchPypi, buildPythonPackage, setuptools_scm, pytest, mock }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "wakeonlan";
|
pname = "wakeonlan";
|
||||||
@ -9,6 +9,19 @@ buildPythonPackage rec {
|
|||||||
sha256 = "5e6013a17004809e676c150689abd94bcc0f12a37ad3fbce1f6270968f95ffa9";
|
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; {
|
meta = with stdenv.lib; {
|
||||||
description = "A small python module for wake on lan";
|
description = "A small python module for wake on lan";
|
||||||
homepage = https://github.com/remcohaszing/pywakeonlan;
|
homepage = https://github.com/remcohaszing/pywakeonlan;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user