nixpkgs/pkgs/development/python-modules/twitter/default.nix
Fabian Affolter fb8f5aa450
python310Packages.twitter: add pythonImportsCheck
- disable on older Python releases
- update meta
2022-08-28 10:34:46 +02:00

36 lines
637 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, pythonOlder
}:
buildPythonPackage rec {
pname = "twitter";
version = "1.19.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-g7jSSEpsdEihGuHG9MJTNVFe6NyB272vEsvAocRo72U=";
};
nativeBuildInputs = [
setuptools-scm
];
doCheck = false;
pythonImportsCheck = [
"twitter"
];
meta = with lib; {
description = "Twitter API library";
homepage = "https://mike.verdone.ca/twitter/";
license = licenses.mit;
maintainers = with maintainers; [ thoughtpolice ];
};
}