mirror of
https://github.com/davegallant/nix-config
synced 2025-08-08 01:42:28 +00:00
Update rfd to use pyproject format
This commit is contained in:
@@ -1,27 +1,25 @@
|
||||
{ lib, fetchFromGitHub, python3, }:
|
||||
{ lib, fetchFromGitHub, python3 }:
|
||||
|
||||
let py = python3.override { };
|
||||
|
||||
in with py.pkgs;
|
||||
buildPythonApplication rec {
|
||||
pname = "rfd";
|
||||
version = "v0.6.0";
|
||||
version = "v0.7.1";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "davegallant";
|
||||
repo = "rfd";
|
||||
rev = version;
|
||||
hash = "sha256:0cllhbca4dykl6j8snmml4kk6kzamlzhcrdf49f5v0zk7zljgkl1";
|
||||
hash = "sha256-imFSkCFeSMLW7QYYF3cXp7tKEruLt8a6W3JDPblKHHU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt --replace "soupsieve<=2.0" "soupsieve"
|
||||
substituteInPlace requirements.txt --replace "beautifulsoup4<=4.8.2" "beautifulsoup4"
|
||||
'';
|
||||
|
||||
# No tests included
|
||||
doCheck = false;
|
||||
|
||||
nativeBuildInputs = [ poetry ];
|
||||
|
||||
propagatedBuildInputs = with py.pkgs; [
|
||||
beautifulsoup4
|
||||
click
|
||||
@@ -35,7 +33,7 @@ buildPythonApplication rec {
|
||||
meta = with lib; {
|
||||
homepage = "https://www.redflagdeals.com/";
|
||||
description = "View RedFlagDeals from the command line";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ ];
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ davegallant ];
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user