Merge pull request #253302 from chrpinedo/master

pricehist: init at 1.4.6
This commit is contained in:
Yorick 2023-09-20 22:36:35 +02:00 committed by GitHub
commit a8be39d4a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 80 additions and 0 deletions

View File

@ -3136,6 +3136,11 @@
fingerprint = "9C56 1D64 30B2 8D6B DCBC 9CEB 73D5 E7FD EE3D E49A"; fingerprint = "9C56 1D64 30B2 8D6B DCBC 9CEB 73D5 E7FD EE3D E49A";
}]; }];
}; };
chrpinedo = {
github = "chrpinedo";
githubId = 2324630;
name = "Christian Pinedo";
};
chuahou = { chuahou = {
email = "human+github@chuahou.dev"; email = "human+github@chuahou.dev";
github = "chuahou"; github = "chuahou";

View File

@ -0,0 +1,25 @@
{ lib, buildPythonPackage, fetchFromGitHub, requests }:
buildPythonPackage {
pname = "curlify";
version = "2.2.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "ofw";
repo = "curlify";
rev = "b914625b12f9b05c39f305b47ebd0d1f061af24d";
hash = "sha256-yDHmH35TtQDJB0na1V98RtBuVHX5TmKC72hzzs1DQK8=";
};
propagatedBuildInputs = [
requests
];
meta = with lib; {
description = "Convert python requests request object to cURL command";
homepage = "https://github.com/ofw/curlify";
license = licenses.mit;
maintainers = with maintainers; [ chrpinedo ];
};
}

View File

@ -0,0 +1,46 @@
{ lib
, buildPythonApplication
, fetchFromGitLab
, requests
, lxml
, cssselect
, curlify
, poetry-core
, pytest-mock
, responses
, pytestCheckHook
}:
buildPythonApplication rec {
pname = "pricehist";
version = "1.4.6";
format = "pyproject";
src = fetchFromGitLab {
owner = "chrisberkhout";
repo = "pricehist";
rev = version;
hash = "sha256-RMZKp0JXQLt9tBZPkb3e/au85lV/FkRBCRYzd2lgUPc=";
};
propagatedBuildInputs = [
requests
lxml
cssselect
curlify
poetry-core
];
nativeCheckInputs = [
responses
pytest-mock
pytestCheckHook
];
meta = with lib; {
description = "A command-line tool for fetching and formatting historical price data, with support for multiple data sources and output formats";
homepage = "https://gitlab.com/chrisberkhout/pricehist";
license = licenses.mit;
mainProgram = "pricehist";
maintainers = with maintainers; [ chrpinedo ];
};
}

View File

@ -1951,6 +1951,8 @@ with pkgs;
polygon-cli = callPackage ../tools/networking/polygon-cli { }; polygon-cli = callPackage ../tools/networking/polygon-cli { };
pricehist = python3Packages.callPackage ../tools/misc/pricehist { };
proycon-wayout = callPackage ../tools/wayland/proycon-wayout { }; proycon-wayout = callPackage ../tools/wayland/proycon-wayout { };
q = callPackage ../tools/networking/q { }; q = callPackage ../tools/networking/q { };

View File

@ -2392,6 +2392,8 @@ self: super: with self; {
curio = callPackage ../development/python-modules/curio { }; curio = callPackage ../development/python-modules/curio { };
curlify = callPackage ../development/python-modules/curlify { };
curtsies = callPackage ../development/python-modules/curtsies { }; curtsies = callPackage ../development/python-modules/curtsies { };
curve25519-donna = callPackage ../development/python-modules/curve25519-donna { }; curve25519-donna = callPackage ../development/python-modules/curve25519-donna { };