mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
37 lines
683 B
Nix
37 lines
683 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools-scm,
|
|
certifi,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "twitter";
|
|
version = "1.19.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-gN3WmuLuuIMT/u3uoxvxGf1ueVQe5bN6u5xD0jMZThA=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [ certifi ];
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "twitter" ];
|
|
|
|
meta = with lib; {
|
|
description = "Twitter API library";
|
|
homepage = "https://mike.verdone.ca/twitter/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
};
|
|
}
|