Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81621 from marsam/update-scrapy
pythonPackages.scrapy: 1.8.0 -> 2.0.0
- Loading branch information
Showing
5 changed files
with
131 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchPypi | ||
, six | ||
, pytest | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "Protego"; | ||
version = "0.1.16"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "a682771bc7b51b2ff41466460896c1a5a653f9a1e71639ef365a72e66d8734b4"; | ||
}; | ||
propagatedBuildInputs = [ six ]; | ||
|
||
checkInputs = [ pytest ]; | ||
|
||
checkPhase = '' | ||
pytest tests | ||
''; | ||
|
||
meta = with lib; { | ||
description = "A pure-Python robots.txt parser with support for modern conventions"; | ||
homepage = "https://github.com/scrapy/protego"; | ||
license = licenses.bsd3; | ||
maintainers = [ maintainers.marsam ]; | ||
}; | ||
} |
27 changes: 27 additions & 0 deletions
27
pkgs/development/python-modules/pytest-twisted/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchPypi | ||
, greenlet | ||
, pytest | ||
, decorator | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "pytest-twisted"; | ||
version = "1.12"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
extension = "zip"; | ||
sha256 = "bb9af117c5c6063d9ef20ffdf2fa297caaf57de5a687e4d3607db7b0a6f74fea"; | ||
}; | ||
|
||
propagatedBuildInputs = [ greenlet pytest decorator ]; | ||
|
||
meta = with lib; { | ||
description = "A twisted plugin for py.test"; | ||
homepage = "https://github.com/pytest-dev/pytest-twisted"; | ||
license = licenses.bsd3; | ||
maintainers = [ maintainers.marsam ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,28 @@ | ||
{ stdenv, buildPythonApplication, fetchPypi, fetchpatch | ||
, pytest, nose }: | ||
{ lib | ||
, buildPythonApplication | ||
, fetchPypi | ||
, pytest | ||
, nose | ||
}: | ||
|
||
buildPythonApplication rec { | ||
pname = "sybil"; | ||
version = "1.0.9"; | ||
pname = "sybil"; | ||
version = "1.2.2"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "41d2f1dba8fd1d8ead5e9b1220b590fab8b0d1ca01d43da08555b1fb08d4d8e8"; | ||
sha256 = "dd84e68facfcb778298ef50a4d7446d4d9092e9d8596012b12bcb82858fd10e1"; | ||
}; | ||
|
||
patches = [ | ||
(fetchpatch { | ||
url = https://github.com/cjw296/sybil/commit/6461d8156cfb68bd073ec613a5a516916e97e549.patch; | ||
sha256 = "0aqny0i7l6g6d7vr025b90zz8wzszqdbmi05mp67dxw5xqjqvxj2"; | ||
}) | ||
]; | ||
|
||
checkInputs = [ pytest nose ]; | ||
|
||
checkPhase = '' | ||
py.test tests | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Automated testing for the examples in your documentation."; | ||
homepage = https://github.com/cjw296/sybil/; | ||
license = licenses.mit; | ||
meta = with lib; { | ||
description = "Automated testing for the examples in your documentation"; | ||
homepage = "https://github.com/cjw296/sybil"; | ||
license = licenses.mit; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters