diff options
author | Tuomas Tynkkynen <tuomas@tuxera.com> | 2018-02-06 04:11:23 +0200 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas@tuxera.com> | 2018-02-06 04:11:23 +0200 |
commit | 9548028a22f3fbc44a450d5ccedaa722479a23ec (patch) | |
tree | 4e405124ab321c69cd9997348fc4fec54540c1a2 /pkgs/development/python-modules/asynctest/default.nix | |
parent | c08e4b9102f1b1bd7cd23cc84c61292f1f45aa7e (diff) | |
parent | da82aff2b05c684cc8239627b54a30002281e35b (diff) | |
download | nixpkgs-9548028a22f3fbc44a450d5ccedaa722479a23ec.tar nixpkgs-9548028a22f3fbc44a450d5ccedaa722479a23ec.tar.gz nixpkgs-9548028a22f3fbc44a450d5ccedaa722479a23ec.tar.bz2 nixpkgs-9548028a22f3fbc44a450d5ccedaa722479a23ec.tar.lz nixpkgs-9548028a22f3fbc44a450d5ccedaa722479a23ec.tar.xz nixpkgs-9548028a22f3fbc44a450d5ccedaa722479a23ec.tar.zst nixpkgs-9548028a22f3fbc44a450d5ccedaa722479a23ec.zip |
Merge remote-tracking branch 'upstream/master' into staging
Conflicts: pkgs/os-specific/linux/cpupower/default.nix
Diffstat (limited to 'pkgs/development/python-modules/asynctest/default.nix')
-rw-r--r-- | pkgs/development/python-modules/asynctest/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/asynctest/default.nix b/pkgs/development/python-modules/asynctest/default.nix new file mode 100644 index 00000000000..2b0348a8758 --- /dev/null +++ b/pkgs/development/python-modules/asynctest/default.nix @@ -0,0 +1,33 @@ +{ lib, buildPythonPackage, fetchPypi, fetchFromGitHub, pythonOlder, python }: + +buildPythonPackage rec { + pname = "asynctest"; + version = "0.11.1"; + + disabled = pythonOlder "3.4"; + + # PyPI tarball doesn't ship test/__init__.py + src = fetchFromGitHub { + owner = "Martiusweb"; + repo = pname; + rev = "v${version}"; + sha256 = "1vvh5vbq2fbz6426figs85z8779r7svb4dp2v3xynhhv05nh2y6v"; + }; + + postPatch = '' + # Skip failing test, probably caused by file system access + substituteInPlace test/test_selector.py \ + --replace "test_events_watched_outside_test_are_ignored" "xtest_events_watched_outside_test_are_ignored" + ''; + + checkPhase = '' + ${python.interpreter} -m unittest test + ''; + + meta = with lib; { + description = "Enhance the standard unittest package with features for testing asyncio libraries"; + homepage = https://github.com/Martiusweb/asynctest; + license = licenses.asl20; + maintainers = with maintainers; [ dotlambda ]; + }; +} |