mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
39 lines
804 B
Nix
39 lines
804 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "peaqevcore";
|
|
version = "15.3.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-nbDySNyHsy/5RaN7L/lbMunfXp+Ohyq0sZWPXirFbqs=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "pytest" ""
|
|
'';
|
|
|
|
# Tests are not shipped and source is not tagged
|
|
# https://github.com/elden1337/peaqev-core/issues/4
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"peaqevcore"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for interacting with Peaqev car charging";
|
|
homepage = "https://github.com/elden1337/peaqev-core";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|