python3Packages.pyaftership: fix build
This commit is contained in:
parent
df68856b08
commit
b4640b3cfc
|
@ -1,4 +1,13 @@
|
||||||
{ aiohttp, async-timeout, buildPythonPackage, fetchPypi, isPy3k, lib }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, isPy3k
|
||||||
|
, aiohttp
|
||||||
|
, async-timeout
|
||||||
|
, aresponses
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyaftership";
|
pname = "pyaftership";
|
||||||
|
@ -6,16 +15,17 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
disabled = !isPy3k;
|
disabled = !isPy3k;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "ludeeus";
|
||||||
sha256 = "28b62c323d06492399b60d8135a58d6feaa1d60837eddc14e57ea2b69d356c0a";
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0jyzgwaijkp80whi58a0hgjzmnlczmd9vwn11z2m0j01kbdwznn5";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ aiohttp async-timeout ];
|
propagatedBuildInputs = [ aiohttp async-timeout ];
|
||||||
|
|
||||||
# No tests
|
checkInputs = [ pytestCheckHook aresponses pytest-asyncio ];
|
||||||
doCheck = false;
|
pythonImportsCheck = [ "pyaftership" ];
|
||||||
pythonImportsCheck = [ "pyaftership.tracker" ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python wrapper package for the AfterShip API";
|
description = "Python wrapper package for the AfterShip API";
|
||||||
|
|
Loading…
Reference in New Issue