mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
45 lines
812 B
Nix
45 lines
812 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# setuptools
|
|
setuptools,
|
|
setuptools-scm,
|
|
|
|
# dependencies
|
|
stravalib,
|
|
beautifulsoup4,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "stravaweblib";
|
|
version = "0.0.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pR0Ps";
|
|
repo = "stravaweblib";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-v54UeRjhoH0GN2AVFKRjqKJ6BYUXVATe2qoDk9P48oU=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
stravalib
|
|
beautifulsoup4
|
|
];
|
|
|
|
pythonImportsCheck = [ "stravaweblib" ];
|
|
|
|
meta = {
|
|
description = "Python library for extending the Strava v3 API using web scraping";
|
|
homepage = "https://github.com/pR0Ps/stravaweblib";
|
|
license = lib.licenses.mpl20;
|
|
maintainers = with lib.maintainers; [ stv0g ];
|
|
};
|
|
}
|