depot/third_party/nixpkgs/pkgs/development/python-modules/pyatome/default.nix
Default email 620eecebfb Project import generated by Copybara.
GitOrigin-RevId: 2deb07f3ac4eeb5de1c12c4ba2911a2eb1f6ed61
2021-10-28 08:52:43 +02:00

34 lines
701 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, requests
, simplejson
, fake-useragent
}:
buildPythonPackage rec {
pname = "pyatome";
version = "0.1.1";
src = fetchPypi {
pname = "pyAtome";
inherit version;
sha256 = "7282e7ec258c69d4ddf2a5754ff07680a1ac92f9bfb478d601fd9e944fccd834";
};
propagatedBuildInputs = [ requests simplejson fake-useragent ];
# no tests in PyPI tarballs
doCheck = false;
pythonImportsCheck = [
"pyatome"
];
meta = with lib; {
description = "Python module to get energy consumption data from Atome";
homepage = "https://github.com/baqs/pyAtome";
license = licenses.asl20;
maintainers = with maintainers; [ uvnikita ];
};
}