python3Packages.dnachisel: switch to GitHub as source and enable tests

This commit is contained in:
Fabian Affolter 2021-01-10 13:56:16 +01:00
parent a53f12762b
commit ec988a139b

View File

@ -1,21 +1,27 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
, biopython , biopython
, docopt , docopt
, flametree , flametree
, numpy , numpy
, proglog , proglog
, pytestCheckHook
, python-codon-tables , python-codon-tables
, primer3
, genome-collector
, matplotlib
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "dnachisel"; pname = "dnachisel";
version = "3.2.6"; version = "3.2.6";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "Edinburgh-Genome-Foundry";
sha256 = "1i49cfpvjvf9610gg4jz06dl5clc8vmcpjmhnm2d1j7lhpp1ksbb"; repo = "DnaChisel";
rev = "v${version}";
sha256 = "0m88biw7sycjwsmncdybj9n3yf4n9cyvifv9zv7irm8ha3scchji";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -27,9 +33,24 @@ buildPythonPackage rec {
python-codon-tables python-codon-tables
]; ];
# no tests in tarball checkInputs = [
doCheck = false; primer3
genome-collector
matplotlib
pytestCheckHook
];
# Disable tests which requires network access
disabledTests = [
"test_circular_sequence_optimize_with_report"
"test_constraints_reports"
"test_optimize_with_report"
"test_optimize_with_report_no_solution"
"test_avoid_blast_matches_with_list"
"test_avoid_phage_blast_matches"
"test_avoid_matches_with_list"
"test_avoid_matches_with_phage"
];
pythonImportsCheck = [ "dnachisel" ]; pythonImportsCheck = [ "dnachisel" ];
meta = with lib; { meta = with lib; {