mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
47 lines
784 B
Nix
47 lines
784 B
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
fetchPypi,
|
||
|
hatchling,
|
||
|
cachetools,
|
||
|
pandas,
|
||
|
requests,
|
||
|
pytestCheckHook,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "world-bank-data";
|
||
|
version = "0.1.4";
|
||
|
pyproject = true;
|
||
|
|
||
|
src = fetchPypi {
|
||
|
pname = "world_bank_data";
|
||
|
inherit version;
|
||
|
hash = "sha256-UidtJovurzrZKWeI7n1bV0vluc5pSg92zKFELvZE9fw=";
|
||
|
};
|
||
|
|
||
|
build-system = [
|
||
|
hatchling
|
||
|
];
|
||
|
|
||
|
dependencies = [
|
||
|
cachetools
|
||
|
pandas
|
||
|
requests
|
||
|
];
|
||
|
|
||
|
# Tests require a HTTP connection
|
||
|
doCheck = false;
|
||
|
|
||
|
pythonImportsCheck = [
|
||
|
"world_bank_data"
|
||
|
];
|
||
|
|
||
|
meta = {
|
||
|
description = "World Bank Data API in Python";
|
||
|
homepage = "https://github.com/mwouts/world_bank_data";
|
||
|
license = lib.licenses.mit;
|
||
|
maintainers = with lib.maintainers; [ itepastra ];
|
||
|
};
|
||
|
}
|