2021-01-05 17:05:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-01-15 22:18:51 +00:00
|
|
|
, fetchFromGitHub
|
2021-01-05 17:05:55 +00:00
|
|
|
, biopython
|
|
|
|
, docopt
|
|
|
|
, flametree
|
|
|
|
, numpy
|
|
|
|
, proglog
|
2021-01-15 22:18:51 +00:00
|
|
|
, pytestCheckHook
|
2023-07-15 17:15:38 +00:00
|
|
|
, pythonOlder
|
2021-01-05 17:05:55 +00:00
|
|
|
, python-codon-tables
|
2021-01-15 22:18:51 +00:00
|
|
|
, primer3
|
|
|
|
, genome-collector
|
|
|
|
, matplotlib
|
|
|
|
}:
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dnachisel";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "3.2.11";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Edinburgh-Genome-Foundry";
|
|
|
|
repo = "DnaChisel";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-rcZq/HhU1xIyQ1jM8+gO9ONDLBAxiUIByoWk2nMwuGA=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
biopython
|
|
|
|
docopt
|
|
|
|
flametree
|
|
|
|
numpy
|
|
|
|
proglog
|
|
|
|
python-codon-tables
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-01-15 22:18:51 +00:00
|
|
|
primer3
|
|
|
|
genome-collector
|
|
|
|
matplotlib
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
# 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"
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"dnachisel"
|
|
|
|
];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/Edinburgh-Genome-Foundry/DnaChisel";
|
|
|
|
description = "Optimize DNA sequences under constraints";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/Edinburgh-Genome-Foundry/DnaChisel/releases/tag/v${version}";
|
2021-01-05 17:05:55 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
|
|
|
};
|
|
|
|
}
|